0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-12 14:23:38 +00:00
ad hoc ad79ef48a2
libsql wal tests (#1408)
* add tests

* add bench
2024-05-24 13:59:17 +00:00

25 lines
626 B
Plaintext

CREATE TABLE t1(a, b);
PRAGMA journal_mode = WAL;
ATTACH 'test.db2' AS two;
CREATE TABLE two.t2(a, b);
PRAGMA main.journal_mode
PRAGMA two.journal_mode
PRAGMA two.journal_mode = DELETE
INSERT INTO t1 DEFAULT VALUES
PRAGMA main.journal_mode
PRAGMA journal_mode
PRAGMA journal_mode = WAL
ATTACH 'test.db2' AS two
PRAGMA main.journal_mode
PRAGMA two.journal_mode
INSERT INTO two.t2 DEFAULT VALUES
PRAGMA two.journal_mode
PRAGMA journal_mode = DELETE
PRAGMA main.journal_mode
PRAGMA two.journal_mode
PRAGMA journal_mode = WAL
PRAGMA main.journal_mode
PRAGMA two.journal_mode