Skip to content

mindler-sasu/kysely

This branch is 130 commits behind kysely-org/kysely:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d1c1322 · Feb 24, 2024
Feb 13, 2024
May 30, 2021
Aug 4, 2023
Dec 29, 2022
Nov 12, 2023
Feb 20, 2024
Feb 24, 2024
Feb 24, 2024
Mar 19, 2023
Mar 25, 2023
Sep 23, 2021
Feb 24, 2024
Nov 16, 2022
Feb 2, 2022
Dec 30, 2023
Sep 9, 2023
Feb 14, 2024
Feb 14, 2024
Jan 2, 2022
Jan 2, 2022
Jan 2, 2022

Repository files navigation

Stand With Ukraine

Discord Tests License Issues Pull Requests Vulnerabilities Downloads Bundle Size Social

Kysely (pronounce “Key-Seh-Lee”) is a type-safe and autocompletion-friendly typescript SQL query builder. Inspired by knex. Mainly developed for node.js but also runs on all other javascript environments like deno.

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.

Contributors


Want to contribute? Check out our contribution guidelines.

Powered by Vercel

About

A type-safe typescript SQL query builder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.3%
  • MDX 2.5%
  • JavaScript 1.9%
  • Other 0.3%