Igal Klebanov ๐Ÿ’ฅ kysely's Avatar

Igal Klebanov ๐Ÿ’ฅ kysely

@igal.dev

@kysely.dev co-lead. @zod.dev contributor. ๐Ÿฅฐ TypeScript, FaaS & DBs. coined Tofu (OpenTofu). opinions are mine. github.com/igalklebanov

897
Followers
371
Following
528
Posts
10.04.2024
Joined
Posts Following

Latest posts by Igal Klebanov ๐Ÿ’ฅ kysely @igal.dev

kysely is amazing. the best SQL interface i've ever worked with hands down

11.12.2025 00:56 ๐Ÿ‘ 9 ๐Ÿ” 1 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

store it in an environment variable.

24.11.2025 14:29 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

what genocide?

30.09.2025 17:15 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

try `kysely-ctl` and mine latest versions. lemme know what you think. ๐Ÿ˜Š

17.08.2025 23:57 ๐Ÿ‘ 4 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

there's pronounciation help in the readme.. ๐Ÿซ 

12.08.2025 10:51 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

separate the art from the artist.

16.06.2025 02:04 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
The Copilot Delusion Disclaimer: This post was written May 2025, and the arguments apply to AI code capabilities at this time. The arguments around lack of competence are certainly likely to become less prevalent-while th...

๐Ÿ’ฏ
deplet.ing/the-copilot-...

25.05.2025 04:26 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 1

100% the neon dude.

24.05.2025 19:20 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

we have @pkg.pr.new for that. pushing preview builds for PRs, the long-living `next` branch, etc. people can play around with these or the playground.

there were a few times where we rolled back and redesigned an API idea before release. if that would have hit `latest` on `npm` prematurely - ouch.

24.05.2025 18:46 ๐Ÿ‘ 3 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

trying to come up with terminology for common typescript hacks in dynamic kysely examples be like:

"now take this floating table and ground it with a static alias that's known at compile-time" ๐Ÿฅด

24.05.2025 18:39 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

and the equally fun "when are you going to release this?" ๐Ÿคก

24.05.2025 18:33 ๐Ÿ‘ 6 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

prepare for support hours? ๐Ÿ˜ฌ

24.05.2025 18:31 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
a screenshot from GitHub showing that `kysely-org/kysely` has reached 12k GitHub stars.

a screenshot from GitHub showing that `kysely-org/kysely` has reached 12k GitHub stars.

f yeah! ๐Ÿคฉ

21.05.2025 10:43 ๐Ÿ‘ 13 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 1
Preview
Release v0.13.0 - migrator/seeder factory, lazy resources, sql module. ยท kysely-org/kysely-ctl Hey ๐Ÿ‘‹ NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW MINOR. NEW ...

new `kysely-ctl` out.

github.com/kysely-org/k...

19.05.2025 11:20 ๐Ÿ‘ 4 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

from a perspective of someone who doesn't read the docs. ๐Ÿซ 

04.05.2025 06:41 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

it's out!

24.04.2025 12:28 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Release 0.28.2 ยท kysely-org/kysely Hey ๐Ÿ‘‹ v0.28 broke an undocumented TypeScript behavior our API had that allowed you to pass table name unions to query builders and enable some DRYing of queries. Seeing that this pattern was quite ...

dynamic table values were an undocumented, accidental thing before v0.28.
now they're officially supported in v0.28.2.

please drink lots of water. it's hot outside, and DRY in your codebases now. ๐Ÿฅค

github.com/kysely-org/k...

24.04.2025 12:27 ๐Ÿ‘ 4 ๐Ÿ” 2 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 1
Preview
Release 0.28.0 ยท kysely-org/kysely Hey ๐Ÿ‘‹ Transactions are getting a lot of love in this one! As part an effort to replace Knex with Kysely, B4nan, the author of mikro-orm drove the new setAccessMode('read only'|'read write') method ...

new me, who this?

github.com/kysely-org/k...

13.04.2025 15:18 ๐Ÿ‘ 11 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Type-safety with TypeScript ORMs and query builders ยท thetutlage meta ยท Discussion #8 Alright, so I maintain a JavaScript ORM called Lucid. Lucid is built on top of knex, which isn't type-safe, and hence, Lucid isn't type-safe either. My gut feeling is that utilizing SQL to its full...

that's more of a comparison between an orm and a query builder. you needed an orm. it's fine.

you were not "holding it right" in some parts, and complaining about sql more than about kysely.

unmatched type-safety.
github.com/thetutlage/m...

17.03.2025 14:55 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
11.03.2025 17:41 ๐Ÿ‘ 6 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

dynasty.

03.03.2025 22:50 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

omg, so many times.

03.03.2025 22:48 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

new patch out.

github.com/kysely-org/k...

03.03.2025 19:06 ๐Ÿ‘ 5 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

in other words, what are the queries you're gonna execute on this table? what `where`s are you using?

e.g. if all you do is `where a = ?` and `where a = ? and b = ?`, all you need is a composite index `(a,b)`, probably*. ๐Ÿคž

* - run some `explain`s to see actual query plans to test assumptions.

03.03.2025 19:14 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

what are the access patterns?

02.03.2025 09:39 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

query builders to the rescue.

18.02.2025 19:30 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Type-safety with TypeScript ORMs and query builders ยท thetutlage meta ยท Discussion #8 Alright, so I maintain a JavaScript ORM called Lucid. Lucid is built on top of knex, which isn't type-safe, and hence, Lucid isn't type-safe either. My gut feeling is that utilizing SQL to its full...

github.com/thetutlage/m...

18.02.2025 19:29 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

ืœื’ืžืจื™. ื”ื—ื“ืจ-ืžืฉืจื“ ืฉืœื™ ืงืคื•ื. ื–ื” ืžื—ืจืคืŸ.

09.02.2025 20:50 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Release v0.11.0 - automatic `tsconfig.paths` resolution. ยท kysely-org/kysely-ctl Hey ๐Ÿ‘‹ This release adds automatic tsconfig.paths resolution behind a --experimental-resolve-tsconfig-paths flag, as jiti doesn't do it by design - which caused crashes in setups that have aliases (...

some of ya'll love them `@` prefixes in imports. hope this helps. ๐Ÿคž๐Ÿคž

github.com/kysely-org/k...

09.02.2025 20:45 ๐Ÿ‘ 2 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

๐Ÿ™Œ

09.02.2025 15:53 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0