testing/javascript: Add libsql to compatibility test suite

This commit is contained in:
Pekka Enberg
2025-07-29 16:07:35 +03:00
parent b4dc9bebe0
commit c39f0e7557
4 changed files with 181 additions and 4 deletions

View File

@@ -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);