gaulthiergain-tools/testfiles/test_sqlite_small.json
Gaulthier Gain 4039686867 Main update
2022-09-09 11:43:03 +02:00

41 lines
No EOL
1.2 KiB
JSON

{
"typeTest": "stdin",
"timeMsCommand": 1000,
"listCommands": [
"create table tbl1(one varchar(10), two smallint);",
"insert into tbl1 values('hello!',10);",
"insert into tbl1 values('goodbye', 20);",
"select * from tbl1;",
".mode list",
"select * from tbl1;",
"select * from tbl1;",
".mode quote",
"select * from tbl1;",
".mode line",
"select * from tbl1;",
".mode column",
"select * from tbl1;",
".width 12 6",
"select * from tbl1;",
".header off",
"select * from tbl1;",
".mode insert new_table",
"select * from tbl1;",
".mode list",
"select * from tbl1;",
"SELECT * FROM tbl1;",
"SELECT * FROM tbl1;",
".help",
"CREATE TABLE selftest(tno INTEGER PRIMARY KEY, op TEXT, cmd TEXT, ans TEXT);",
"CREATE TABLE tbl2 (f1 varchar(30) primary key,f2 text,f3 real);",
"insert into tbl2 values(10, 'hello!',10);",
"insert into tbl2 values(20, 'hello!',20);",
"UPDATE tbl2 SET f2='salut' WHERE f2='hello!';",
"select * from tbl1;",
"select * from tbl2;",
"DELETE FROM tbl2 WHERE f2='salut';",
"DELETE FROM tbl2 WHERE f2='hello';",
"DROP TABLE tbl2;",
".quit"
]
}