A modern, database-agnostic, composable SELECT query builder with great typescript support.
Install from npm
npm i sql-select-ts
Check out the examples and docs.
A modern, database-agnostic, composable SELECT query builder with great typescript support.
Home Page: https://lucasavila00.github.io/sql-select-ts/
License: MIT License
A modern, database-agnostic, composable SELECT query builder with great typescript support.
Install from npm
npm i sql-select-ts
Check out the examples and docs.
export const xxxxxxxx = (args: yyyyy) =>
pipe(
select(
_f => ({
........
}),
table
).where(f => [
//
aaaaaa
]),
groupSortLimit
);
to remove usage of this pipe
// this should work
t.select(f => ({"a.b": f.a.b}).select(f => ({"a.b": f["a.b"]})
// this should be distinguishable
select 1 as `t1.eid`, `t1`.`eid`, `t1.eid` from t1 limit 1
A little experiment should be possible without too much re-design on the type structure
tableA
.selectStar()
.from(tableB.select()...)
node_modules/sql-select-ts/lib/index.d.ts:108:467 - error TS1005: '?' expected.
108 export declare const except: <C extends SelectStatement<any, any>, CS extends SelectStatement<any, any>[]>(content: [C, ...CS]) => Compound<(C extends SelectStatement<infer _Scope extends string, infer Selection extends string> ? Selection : never) | (CS[number] extends infer T ? T extends CS[number] ? T extends SelectStatement<string, string> ? string : never : never : never), C extends SelectStatement<infer _Scope extends string, infer Selection extends string> ? Selection : never>;
select sum(it) as it, it*2 as sum from (...)
select sum(t.it) as it, t.it*2 as sum from (...) as t
They were the ones preventing usage of TS 4.7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.