@tursodatabase/database-wasm 0.2.0-pre.11 → 0.2.0-pre.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundle/main.es.js +3317 -3265
- package/dist/promise.test.js +4 -3
- package/dist/turso.wasm32-wasi.wasm +0 -0
- package/dist/wasm-inline.js +1 -1
- package/package.json +3 -3
package/dist/promise.test.js
CHANGED
|
@@ -8,10 +8,11 @@ test('in-memory db', async () => {
|
|
|
8
8
|
const rows = await stmt.all([1]);
|
|
9
9
|
expect(rows).toEqual([{ x: 1 }, { x: 3 }]);
|
|
10
10
|
});
|
|
11
|
-
test('
|
|
11
|
+
test('implicit connect', async () => {
|
|
12
12
|
const db = new Database(':memory:');
|
|
13
|
-
|
|
14
|
-
await
|
|
13
|
+
const defer = db.prepare("SELECT * FROM t");
|
|
14
|
+
await expect(async () => await defer.all()).rejects.toThrowError(/no such table: t/);
|
|
15
|
+
expect(() => db.prepare("SELECT * FROM t")).toThrowError(/no such table: t/);
|
|
15
16
|
expect(await db.prepare("SELECT 1 as x").all()).toEqual([{ x: 1 }]);
|
|
16
17
|
});
|
|
17
18
|
test('on-disk db large inserts', async () => {
|
|
Binary file
|