3 ms·
Which allows for things like this type that implements a simplified SQL query parser checked against a provided 'database' object: https://github.com/codemix/t
by spiralx 4y ago
Which allows for things like this type that implements a simplified SQL query parser checked against a provided 'database' object:
https://github.com/codemix/ts-sql https://github.com/codemix/ts-sql
This project was my go-to "nifty but pointless" example for TS string literal types before this article :)
- staticassertion 4y agoYeah I saw that was cited and I love it. It's insane but super cool and I could imagine the approach being used for something similar to https://crates.io/crates/sqlx https://crates.io/crates/sqlx although there's probably better ways to do it lol