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

@@ -410,6 +410,11 @@ const connect = async (path, options = {}) => {
const db = new x.default(path, options);
return [db, x.SqliteError];
}
if (provider === "libsql") {
const x = await import("libsql/promise");
const db = new x.default(path, options);
return [db, x.SqliteError, path];
}
if (provider === "serverless") {
const x = await import("@tursodatabase/serverless");
const url = process.env.TURSO_DATABASE_URL;