From ff7d801f39a496de708dd6aaa5dbe852c58aadc9 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 28 Oct 2014 19:24:13 +0000 Subject: Add db controller/model to allow editing of any supported database --- db-controller.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db-controller.lua (limited to 'db-controller.lua') 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 -- cgit v1.2.3