summaryrefslogtreecommitdiff
path: root/anim/tools
diff options
context:
space:
mode:
Diffstat (limited to 'anim/tools')
-rw-r--r--anim/tools/chart.py2
-rw-r--r--anim/tools/sqlite.c18
2 files changed, 20 insertions, 0 deletions
diff --git a/anim/tools/chart.py b/anim/tools/chart.py
index 78ba34d..168060a 100644
--- a/anim/tools/chart.py
+++ b/anim/tools/chart.py
@@ -42,6 +42,8 @@ motion.REGIONS.update({
"sort": {**subject, **words},
"syscalls": {**subject, **words},
"list": {**subject, **words},
+ # The band's drawing is the backtrace, then the kernel's side.
+ "sqlite": {**subject, **words},
"zoom": {**none, **words},
"gallery": {**beside, **words},
})
diff --git a/anim/tools/sqlite.c b/anim/tools/sqlite.c
new file mode 100644
index 0000000..5d018c6
--- /dev/null
+++ b/anim/tools/sqlite.c
@@ -0,0 +1,18 @@
+// Three rows into a table of a file database, in one transaction: SQLite's
+// amalgamation (not ours: build.zig takes it from -Dsqlite) as a library.
+#include "sqlite3.h"
+
+int main(void) {
+ sqlite3 *db;
+ if (sqlite3_open("t.db", &db) != SQLITE_OK) return 1;
+ int rc = sqlite3_exec(db,
+ "CREATE TABLE t(word TEXT);"
+ "BEGIN;"
+ "INSERT INTO t VALUES ('alpha');"
+ "INSERT INTO t VALUES ('beta');"
+ "INSERT INTO t VALUES ('gamma');"
+ "COMMIT;",
+ 0, 0, 0);
+ sqlite3_close(db);
+ return rc;
+}