summaryrefslogtreecommitdiff
path: root/test/test-db.sql
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-09-14 00:16:10 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-09-14 00:16:10 -0400
commitefcea3a80da7c4479d5fe168435ecc9fd06bdc72 (patch)
tree5cb0177e17b1b00a177f2e830e809f606334571b /test/test-db.sql
downloadsqlite-kv-bench-efcea3a80da7c4479d5fe168435ecc9fd06bdc72.tar.gz
Squashed 'subprojects/boost-sqlite/' content from commit 3378e35
git-subtree-dir: subprojects/boost-sqlite git-subtree-split: 3378e353705271e569cf4ba15c467b840a39798c
Diffstat (limited to 'test/test-db.sql')
-rw-r--r--test/test-db.sql29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/test-db.sql b/test/test-db.sql
new file mode 100644
index 0000000..251313c
--- /dev/null
+++ b/test/test-db.sql
@@ -0,0 +1,29 @@
+--query_helper(R"(
+
+create table author (
+ id integer primary key autoincrement not null,
+ first_name text unique not null,
+ last_name text
+);
+
+insert into author (first_name, last_name) values
+ ('vinnie', 'falco'),
+ ('richard', 'hodges'),
+ ('ruben', 'perez'),
+ ('peter', 'dimov')
+;
+
+create table library(
+ id integer primary key autoincrement,
+ name text unique,
+ author integer references author(id)
+);
+
+insert into library ("name", author) values
+ ('beast', (select id from author where first_name = 'vinnie' and last_name = 'falco')),
+ ('mysql', (select id from author where first_name = 'ruben' and last_name = 'perez')),
+ ('mp11', (select id from author where first_name = 'peter' and last_name = 'dimov')),
+ ('variant2', (select id from author where first_name = 'peter' and last_name = 'dimov'))
+;
+
+--)") \ No newline at end of file