summaryrefslogtreecommitdiffstats
path: root/db-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-10-28 19:24:13 +0000
committerTed Trask <ttrask01@yahoo.com>2014-10-28 19:24:13 +0000
commitff7d801f39a496de708dd6aaa5dbe852c58aadc9 (patch)
treeb6c0398a92ff0f49bdd0ade5a336d61e5737c467 /db-controller.lua
parent282d068aced3f88956af4182a353f8ea150caa2b (diff)
downloadacf-db-ff7d801f39a496de708dd6aaa5dbe852c58aadc9.tar.bz2
acf-db-ff7d801f39a496de708dd6aaa5dbe852c58aadc9.tar.xz
Add db controller/model to allow editing of any supported database
Diffstat (limited to 'db-controller.lua')
-rw-r--r--db-controller.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/db-controller.lua b/db-controller.lua
new file mode 100644
index 0000000..6aaa260
--- /dev/null
+++ b/db-controller.lua
@@ -0,0 +1,11 @@
+local mymodule = {}
+
+mymodule.default_action = "listdatabases"
+
+-- Use acf-db-lib to allow editing of the database
+dbcontrollerfunctions = require("dbcontrollerfunctions")
+for n,f in pairs(dbcontrollerfunctions) do
+ mymodule[n] = f
+end
+
+return mymodule