summaryrefslogtreecommitdiffstats
path: root/db-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'db-model.lua')
-rw-r--r--db-model.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/db-model.lua b/db-model.lua
new file mode 100644
index 0000000..c9b99e3
--- /dev/null
+++ b/db-model.lua
@@ -0,0 +1,13 @@
+local mymodule = {}
+
+-- Load libraries
+db = require("acf.db")
+dbmodelfunctions = require("dbmodelfunctions")
+
+for n,f in pairs(dbmodelfunctions) do
+ mymodule[n] = function(...)
+ return f(db.create, ...)
+ end
+end
+
+return mymodule