about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-12-21 20:46:02 -0500
committerelioat <elioat@tilde.institute>2022-12-21 20:46:02 -0500
commit580ca9123411324abdc6e3fc260688172fec671f (patch)
tree24418185915348ecb42cae195f64de32bd328726
parentbcd07bbdce48f65195780df3c94ec0db78708885 (diff)
downloaddecember-2022-580ca9123411324abdc6e3fc260688172fec671f.tar.gz
*
-rw-r--r--.gitignore3
-rw-r--r--rnd/racket/sqlite.rkt10
2 files changed, 13 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 574cd5d..1123364 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
+*.db
+*.sqlite
+
 # Created by https://www.toptal.com/developers/gitignore/api/macos,emacs
 # Edit at https://www.toptal.com/developers/gitignore?templates=macos,emacs
 
diff --git a/rnd/racket/sqlite.rkt b/rnd/racket/sqlite.rkt
new file mode 100644
index 0000000..bbba395
--- /dev/null
+++ b/rnd/racket/sqlite.rkt
@@ -0,0 +1,10 @@
+#lang racket
+
+(require db)
+
+(sqlite3-connect #:database "playground.db"
+                 #:mode 'create)
+
+(if (sqlite3-available?)
+    (display "do stuff") ;; if you've connected, do a thing
+    (displayln "borked"))
\ No newline at end of file