Menu

Raw SQL parser in TypeScript types

Reddit r/SQL·u/ismail5412·13 days ago
#8NlPjFAL
#typescript#think#parser#types#library
Reading 0:00
15s threshold

Hello. I created this library to use raw SQL queries within TypeScript.

I don't particularly like ORMs, so lately I've been using the Kysely query builder library, which is very similar to SQL. However, even though it's very similar, it still has some catches and special cases.

Therefore, I started looking for ways to use raw SQL directly. Frankly, there weren't many alternatives for this specific case, and those that were available were generally hacky solutions requiring codegens or running a process.

Considering that TypeScript has sped up recently with tsc 7 and tsrs, it seemed logical to do this directly in TypeScript. However, since writing a project of this scale manually as a hobby would take too long, I used AI.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.