TypeError: db.execute is not a function

import { drizzle } from 'drizzle-orm/better-sqlite3'; import Database from 'better-sqlite3'; const sqlite = new Database('sqlite.db'); const db = drizzle({ client: sqlite }); const result = await db.execute('select 1'); has anyone been able to run the last command without the above error. The example is taken from the documentation, last example https://orm.drizzle.team/docs/get-started-sqlite#better-sqlite3
Drizzle ORM - SQLite
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
2 Replies
Angelelz
Angelelz2w ago
The docs are wrong there, for SQLite you have run, get, values and all
karadz.
karadz.OP2w ago
thank very much
Want results from more Discord servers?
Add your server