mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 09:42:22 +00:00
bind/js: Partially implements pragma
Some pragmas may return more than one value, which would break the current logic. So this cause should be handled in the future
This commit is contained in:
parent
1ff454853b
commit
60b78b3566
4 changed files with 70 additions and 9 deletions
|
@ -52,6 +52,12 @@ test("Empty prepared statement should throw", async (t) => {
|
|||
);
|
||||
});
|
||||
|
||||
test("Test pragma", async (t) => {
|
||||
const [db] = await connect(":memory:");
|
||||
t.deepEqual(typeof db.pragma("cache_size")[0].cache_size, "number");
|
||||
t.deepEqual(typeof db.pragma("cache_size", { simple: true }), "number");
|
||||
});
|
||||
|
||||
const connect = async (path) => {
|
||||
const db = new Database(path);
|
||||
return [db];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue