mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 09:04:19 +01:00
testing/javascript: Add libsql to compatibility test suite
This commit is contained in:
@@ -453,6 +453,11 @@ const connect = async (path, options = {}) => {
|
||||
const db = new x.default(path, options);
|
||||
return [db, x.SqliteError, provider];
|
||||
}
|
||||
if (provider === "libsql") {
|
||||
const x = await import("libsql");
|
||||
const db = new x.default(path, options);
|
||||
return [db, x.SqliteError, provider, path];
|
||||
}
|
||||
if (provider == "better-sqlite3") {
|
||||
const x = await import("better-sqlite3");
|
||||
const db = x.default(path, options);
|
||||
|
||||
Reference in New Issue
Block a user