mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
bindings/javascript: Rename @tursodatabase/database/sync to compat
We already have a `@tursodatabase/sync` package so let's make the name of the better-sqlite3 compatibility API package stand out.
This commit is contained in:
@@ -516,7 +516,7 @@ const connect = async (path, options = {}) => {
|
||||
}
|
||||
const provider = process.env.PROVIDER;
|
||||
if (provider === "turso") {
|
||||
const { Database, SqliteError }= await import("@tursodatabase/database/sync");
|
||||
const { Database, SqliteError }= await import("@tursodatabase/database/compat");
|
||||
const db = new Database(path, options);
|
||||
return [db, path, provider, SqliteError];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user