1
Fork 0
mirror of https://github.com/benkoppe/kysely synced 2025-12-05 14:38:06 -08:00
No description
Find a file
2025-06-02 11:10:43 +03:00
.github/workflows chore: move pkg-pr-new to workflow only. (#1471) 2025-05-25 19:34:38 +03:00
assets update docs 2021-05-31 00:21:21 +03:00
docs move api docs to kysely-apidocs repo 2023-08-04 12:25:40 +03:00
example docs: updated outdated links (#1125) 2024-08-25 02:12:03 +03:00
scripts chore: bump deps, dump tsx for Node.js native TS. (#1451) 2025-05-02 04:07:05 +03:00
site Added Cloudflare Durable Objects dialect (#1476) 2025-06-02 11:10:43 +03:00
src fix(Migrator): NO_MIGRATIONS comparison fails in dup Kysely scenarios. (#1475) 2025-06-01 22:48:36 +03:00
test fix(Migrator): NO_MIGRATIONS comparison fails in dup Kysely scenarios. (#1475) 2025-06-01 22:48:36 +03:00
.gitignore add helpers subpackage and some initial postgres helpers 2023-03-19 11:32:14 +02:00
.node-version chore: bump deps, dump tsx for Node.js native TS. (#1451) 2025-05-02 04:07:05 +03:00
.nvmrc chore: bump deps, dump tsx for Node.js native TS. (#1451) 2025-05-02 04:07:05 +03:00
.prettierignore update docs 2021-09-23 11:44:39 +03:00
.prettierrc.json add TOP clause support. (#821) 2024-02-24 17:32:45 +02:00
CODE_OF_CONDUCT.md add reactions as an example in CoC. 2025-01-05 12:18:06 +02:00
CONTRIBUTING.md fix: isAutoIncrementing: true for sqlite integer primary key (#1344) 2025-02-08 08:44:23 +02:00
deno.check.d.ts Add table to DynamicModule for dynamic table references (#1434) 2025-04-24 10:20:28 +03:00
deno.check.json chore: fix jsdoc errors and add some examples, pt. 3. (#1279) 2024-11-25 01:08:53 +02:00
docker-compose.yml remove docker-compose file version. (#966) 2024-04-26 00:38:11 +03:00
FUNDING.md add FUNDING.md (#1317) 2025-01-12 10:27:45 +02:00
LICENSE add license 2022-02-02 22:10:30 +02:00
outdated-typescript.d.ts chore: enforce min TS version (#1194) 2025-04-07 00:15:00 +03:00
package-lock.json chore: move pkg-pr-new to workflow only. (#1471) 2025-05-25 19:34:38 +03:00
package.json chore: move pkg-pr-new to workflow only. (#1471) 2025-05-25 19:34:38 +03:00
README.md enhance contribution @ readme. (#1414) 2025-04-06 23:13:39 +03:00
tsconfig-base.json implement ColumnType and remove db.generated 2022-01-02 20:19:16 +02:00
tsconfig-cjs.json implement ColumnType and remove db.generated 2022-01-02 20:19:16 +02:00
tsconfig.json implement ColumnType and remove db.generated 2022-01-02 20:19:16 +02:00

Stand With Ukraine

NPM Version Tests License Issues Pull Requests GitHub contributors Downloads Bundle Size

Join the discussion

Discord Bluesky

Get started

Postgres MySQL MicrosoftSQLServer SQLite & more!

Kysely

Kysely (pronounce “Key-Seh-Lee”) is a type-safe and autocompletion-friendly TypeScript SQL query builder. Inspired by Knex.js. Mainly developed for Node.js but also runs on all other JavaScript environments like Deno, Bun, Cloudflare Workers and web browsers.

Kysely makes sure you only refer to tables and columns that are visible to the part of the query you're writing. The result type only has the selected columns with correct types and aliases. As an added bonus you get autocompletion for all that stuff.

As shown in the gif above, through the pure magic of modern TypeScript, Kysely is even able to parse the alias given to pet.name and add the pet_name column to the result row type. Kysely is able to infer column names, aliases and types from selected subqueries, joined subqueries, with statements and pretty much anything you can think of.

Of course there are cases where things cannot be typed at compile time, and Kysely offers escape hatches for these situations. See the sql template tag and the DynamicModule for more info.

All API documentation is written in the typing files and you can simply hover over the module, class or method you're using to see it in your IDE. The same documentation is also hosted here.

If you start using Kysely and can't find something you'd want to use, please open an issue or join our Discord server.

Getting started

Please visit our documentation site kysely.dev to get started. We also have a comprehensive API documentation hosted here, but you can access the same documentation in your IDE by hovering over a class/method/property/whatever.

Core team

Project leads

Responsible for project direction, API design, maintenance, code reviews, community support, documentation, and working on some of the most impactful/challenging things.


Sami Koskimäki

(the author)

Igal Klebanov

(the dynamo)

Honorable mentions

People who had special impact on the project and its growth.


Fernando Hurtado

(1st docs)

Wirekang

(playground)

Tim Griesser

(Knex)

Robin Blomberg

(codegen)

Shoubhit Dash

(prisma idea)

Valtýr Örn Kjartansson

(prisma impl)

Dax Raad

(early adopter)

Theo Browne

(early promoter)

Lee Robinson

(early promoter)

Ethan Resnick

(timely feedback)

Harminder Virk

(dope writeup)

Johan Eliasson

(promoter/educator)

All contributors


Want to contribute? Check out our contribution guidelines.

Powered by Vercel