Comments (3)
I would like to point out that this project is possibly the best typed SQL builder attempt for JS/TS.
Even when compared to mature competition in other languages, the qualities of TypeScript makes the type-safe SQL builder attractive to attempt, because SQL just like TypeScript is structurally typed.
I'd like to note that this library has similar qualities as https://github.com/gcanti/io-ts when it comes to defining the underlying types. But I'm not sure can it be used for defining schema, it probably doesn't have enough info to do that.
from ts-typed-sql.
Hi Paul,
right now I have too many other projects before I can give this library the love it needs. I currently don't work on a project involving SQL.
The implementation is pretty production ready and used in a somewhat large project. I would consider the API to be stable, maybe it's a good idea to publish it as 1.0.
Afaik there are some typescript issues due to type glitches in tsc. If you are interested in using and helping to improve this library I could have a look at it.
There are some features missing:
- A concept of types with deserialization logic
- SQL Schema Generation
- migrations
- Better null handling
TypeScripts typesystem also evolved a lot during the last two years, maybe even more things could be typed. E.g. I was never able to properly handle the types of left joined columns, which could be null.
from ts-typed-sql.
Thanks @hediet for that summary, and your work on ts-typed-sql!
from ts-typed-sql.
Related Issues (20)
- Cannot add date, time, interval, etc.
- between operator
- SQL query that returns no rows HOT 1
- .unionAll outputs UNION instead of UNION ALL HOT 1
- Alternative Solution HOT 7
- or function is missing HOT 1
- whereNot does not respect previous where conditions
- Typed Errors
- cast precedence error
- typescript >= 2.6 compatibility HOT 2
- Subquery in insertInto fails with "TypeError: Converting circular structure to JSON"
- skipQuotingIfNotRequired is buggy HOT 4
- Compile with "declaration": true and replace "types": field with declaration HOT 2
- Allow getting result meta information HOT 1
- Broken on non-windows HOT 1
- sum() function return type depends on input type
- Cannot select expression HOT 2
- ISOLATION LEVEL is ignored
- single / singleOrUndefined misleadingly add limit 2 to queries with limit 1 leading to "More than one row returned"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-typed-sql.