mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 09:04:19 +01:00
10 lines
387 B
TypeScript
10 lines
387 B
TypeScript
import { DatabaseCompat, NativeDatabase, SqliteError, DatabaseOpts } from "@tursodatabase/database-core"
|
|
import { Database as NativeDB } from "#index";
|
|
|
|
class Database extends DatabaseCompat {
|
|
constructor(path: string, opts: DatabaseOpts = {}) {
|
|
super(new NativeDB(path, { tracing: opts.tracing }) as unknown as NativeDatabase, opts)
|
|
}
|
|
}
|
|
|
|
export { Database, SqliteError } |