diff options
Diffstat (limited to 'modules/0-db.rkt')
-rw-r--r-- | modules/0-db.rkt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/0-db.rkt b/modules/0-db.rkt new file mode 100644 index 0000000..71e28ab --- /dev/null +++ b/modules/0-db.rkt @@ -0,0 +1,13 @@ +#lang racket/base +(require irc/db irc/storage + racket/match db) + +; this is fineā¢, meep is expected to run as its own user +(define data-dir (getenv "HOME")) + +(current-database + (sqlite3-connect #:database (build-path data-dir "meep.sqlite") + #:mode 'create)) + +(db-init) +(storage-init) |