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