daniel_uc
DTDrizzle Team
•Created by daniel_uc on 1/26/2024 in #help
Is this error in Docs for drizzle-kit Running Migrations SQLite
In my ide I get the following typescript error: 'await' has no effect on the type of this expression.ts(80007)
7 replies
DTDrizzle Team
•Created by daniel_uc on 1/26/2024 in #help
Is this error in Docs for drizzle-kit Running Migrations SQLite
No, I followed the docs in the link for SQLite
import { drizzle } from "drizzle-orm/better-sqlite3";
import Database from "better-sqlite3";
import { migrate } from "drizzle-orm/better-sqlite3/migrator";
import * as schema from "./schema";
export const sqlite = new Database("dev.db");
sqlite.pragma("journal_mode = WAL");
export const db = drizzle(sqlite, { schema });
migrate(db, { migrationsFolder: "drizzle" });
7 replies