kysely
banner
kysely.dev
kysely
@kysely.dev
The type-safe SQL query builder for TypeScript.
Not an ORM, product or company.
Inspired by Knex.js. From Objection.js' creator.
"what you see is what you get".
http://kysely.dev
been right all along. 😇
February 7, 2025 at 6:21 AM
not a big deal. it'll probably be exposed in v0.28.
February 2, 2025 at 2:51 PM
the ast has a root node with a `kind` property. you can also import and use `is` functions of `DeleteQueryNode`, `SelectQueryNode`, etc.
February 2, 2025 at 1:57 PM
you can use `.toOperationNode()` to just get the ast, then instantiate a query builder on the other side based on its root kind. e.g. `new DeleteQueryBuilder({
executor: db.getExecutor(),
queryId: createQueryId(),
queryNode: queryThatYouSentOverWire,
})`
February 2, 2025 at 1:50 PM
🐤👍
February 2, 2025 at 12:54 PM
this is better explained on kysely.dev/docs/recipes...
Splitting query building and execution | Kysely
Kysely is primarily a type-safe sql query builder.
kysely.dev
February 1, 2025 at 10:43 PM
welcome to type-safety. 🤗
February 1, 2025 at 10:40 PM
what are you working on? 👀
February 1, 2025 at 5:12 PM
stay safe out there! 😉👍
January 26, 2025 at 3:28 PM