https://github.com/yjl9903/drizzle-sqlite
Drizzle-orm Node.js builtin SQLite driver
https://github.com/yjl9903/drizzle-sqlite
drizzle-orm sqlite
Last synced: about 4 hours ago
JSON representation
Drizzle-orm Node.js builtin SQLite driver
- Host: GitHub
- URL: https://github.com/yjl9903/drizzle-sqlite
- Owner: yjl9903
- License: mit
- Created: 2026-05-09T04:58:17.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-06-24T18:54:00.000Z (1 day ago)
- Last Synced: 2026-06-24T20:20:16.451Z (1 day ago)
- Topics: drizzle-orm, sqlite
- Language: TypeScript
- Homepage:
- Size: 227 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drizzle-sqlite
[](https://www.npmjs.com/package/drizzle-sqlite)
[](https://github.com/yjl9903/drizzle-sqlite/actions/workflows/ci.yml)
Drizzle-orm Node.js builtin SQLite `node:sqlite` driver.
> [!NOTE]
> `node:sqlite` is enabled since Node.js v22.5.0, see [docs](https://nodejs.org/api/sqlite.html).
## Installation
```bash
npm i drizzle-orm drizzle-sqlite
```
## Usage
```typescript
import { eq, sql } from 'drizzle-orm';
import { integer, sqliteTable, text } from 'drizzle-orm/sqlite-core';
import { drizzle } from 'drizzle-sqlite';
const users = sqliteTable('users', {
id: integer('id').primaryKey({ autoIncrement: true }),
name: text('name').notNull()
});
const db = drizzle(':memory:', { schema: { users } });
db.run(sql`
create table users (
id integer primary key autoincrement,
name text not null
)
`);
db.insert(users).values({ name: 'Ada' }).run();
db.insert(users).values({ name: 'Lin' }).run();
const ada = await db.select().from(users).where(eq(users.name, 'Ada'));
const lin = await db.select().from(users).where(eq(users.name, 'Lin'));
console.log(ada, lin);
db.$client.close();
```
## Credits
Thanks to [drizzle-orm #4346](https://github.com/drizzle-team/drizzle-orm/pull/4346).
## License
MIT License © 2026 [XLor](https://github.com/yjl9903)