sequelts
sequelts copied to clipboard
https://github.com/xialvjun/ts-sql-plugin
Once we can resolve the return type of functions, we can create a mechanism to allow for user-defined functions. SQLite allows that. They are basically JS functions, so we can...
CF now ships with a database called D1. It is based on SQLite: https://blog.cloudflare.com/introducing-d1/ Threir examples use raw-sql queries, which would be the perfect use-case for this library.
- Find out how to test type-level code
Basically, we want to create a function that does this: https://www.npmjs.com/package/sql-template-strings Current API: ```js const getSingle = createQuerySingleFunction((q, ...p) => db.prepare(q).get(...p), databaseSchema); const a = getSingle("SELECT name FROM user WHERE...
- Support arbitrary whitespace - Support arbitrary keyword casing - Support a broader grammar - Should be done in a way that it can be swapped out by a generated...