--- /dev/null
+! Copyright (C) 2024 Doug Coleman.
+! See https://factorcode.org/license.txt for BSD license.
+USING: db db.sqlite db.sqlite.ffi db.sqlite.lib io.files.unique
+io.pathnames kernel namespaces strings tools.test ;
+IN: db.sqlite.lib.tests
+
+{ t } [ sqlite3_libversion string? ] unit-test
+
+{ "test.db" } [
+ [
+ "test.db" current-directory get prepend-path <sqlite-db>
+ [ current-sqlite-filename file-name ] with-db
+ ] with-unique-directory drop
+] unit-test
sqlite3_step sqlite-step-has-more-rows? ;
: current-sqlite-filename ( -- path/f )
- db-connection get [ handle>> f sqlite3_db_filename ] [ f ] if* ;
\ No newline at end of file
+ db-connection get [ handle>> f sqlite3_db_filename ] [ f ] if* ;