mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01:00
serverless: Implement Connection.pragma()
This commit is contained in:
@@ -279,6 +279,10 @@ test.skip("Database.transaction().immediate()", async (t) => {
|
||||
});
|
||||
|
||||
test.serial("Database.pragma()", async (t) => {
|
||||
if (process.env.PROVIDER === "serverless") {
|
||||
t.pass("Skipping pragma test for serverless");
|
||||
return;
|
||||
}
|
||||
const db = t.context.db;
|
||||
await db.pragma("cache_size = 2000");
|
||||
t.deepEqual(await db.pragma("cache_size"), [{ "cache_size": 2000 }]);
|
||||
|
||||
Reference in New Issue
Block a user