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

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

29 lines
535 B
Plaintext

CREATE TABLE t1(x);
CREATE TEMP TRIGGER tr1 BEFORE INSERT ON t1 BEGIN
SELECT 1,2,3;
END;
CREATE TEMP TABLE t1(x);
CREATE TABLE t1(x);
CREATE TEMP TRIGGER tr1 BEFORE INSERT ON t1 BEGIN SELECT 1,2,3; END;
SELECT * FROM sqlite_master;
SELECT * FROM temp.sqlite_master;
CREATE TABLE t1(x);
CREATE TEMP TRIGGER tr1 BEFORE INSERT ON t1 BEGIN
SELECT raise(ABORT, 'error');
END;
ATTACH 'test.db2' AS aux;
SELECT type,name,tbl_name,sql FROM aux.sqlite_master;
INSERT INTO aux.t1 VALUES(1,2,3);