Git Product home page Git Product logo

Comments (3)

Ciantic avatar Ciantic commented on June 18, 2024 4

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.

hediet avatar hediet commented on June 18, 2024

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.

pauldraper avatar pauldraper commented on June 18, 2024

Thanks @hediet for that summary, and your work on ts-typed-sql!

from ts-typed-sql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.