This project compares two popular TypeScript SQL query builders: Kysely and Drizzle.
The project uses a simple schema for demonstration purposes, you can find it's initialisation scripts in init.sql.
The schema is composed of products, categories, customers, orders, and order-items.
- Clone the repository:
git clone https://github.com/your-username/kysely-vs-drizzle.git
cd kysely-vs-drizzle
- Install dependencies:
make install
- To run the project tests
make test
- To start the db
make start-db
The repository part for Knex, Kysely, and Drizzle is structured as follows:
src/
├── knex/
├── kysely/
└── drizzle/
Each directory contains the respective implementation of the SQL query builder, with tests and example queries.