karadz.
DTDrizzle Team
•Created by karadz. on 11/7/2024 in #help
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
3 replies