kysely-org/kysely ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript SQL query builder that feels safe and easy to use, with great autocomplete and strong compile time checks. I want to be able to write queries for common databases like Postgres, MySQL, SQLite, and SQL Server, and have the result types match the selected columns automatically, including aliases and subqueries. It should work in Node and also in places like Deno, Bun, and the browser.

Please include a clean public API, good inline docs, a few realistic examples, and tests that prove the type inference and query building behave correctly. If you need to check current best practices or database driver details, look up the latest docs online. Also make sure there is a simple getting started example and that the library is pleasant to use from TypeScript without a lot of extra setup.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab