kysely
Installation
SKILL.md
Kysely
Overview
Kysely is a type-safe TypeScript SQL query builder. Unlike ORMs, it doesn't abstract away SQL — it gives you full SQL power with TypeScript autocompletion and type checking. Every query is validated at compile time. Zero overhead: Kysely generates SQL strings, nothing more.
Instructions
Step 1: Define Types
// db/types.ts — Database type definitions
import { Generated, Insertable, Selectable, Updateable } from 'kysely'
interface Database {
users: UsersTable
posts: PostsTable
comments: CommentsTable
}