aboutsummaryrefslogtreecommitdiff
path: root/src/guff/model.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/model.cr')
-rw-r--r--src/guff/model.cr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/guff/model.cr b/src/guff/model.cr
new file mode 100644
index 0000000..370229c
--- /dev/null
+++ b/src/guff/model.cr
@@ -0,0 +1,11 @@
+module Guff
+ class Model
+ getter :db
+
+ def initialize(@config : Config)
+ # create site database
+ db_path = "%s/site.db" % [config["data"]]
+ @db = Database.new(db_path)
+ end
+ end
+end