Use database from config
Use the database file that came from the config file.
This commit is contained in:
parent
7e5e38c3f2
commit
f88ec0e22a
|
@ -6,10 +6,11 @@ local sql = require("lsqlite3")
|
||||||
|
|
||||||
local queries = require("queries")
|
local queries = require("queries")
|
||||||
local util = require("util")
|
local util = require("util")
|
||||||
|
local config = require("config")
|
||||||
|
|
||||||
local db = {}
|
local db = {}
|
||||||
local oldconfigure = configure
|
local oldconfigure = configure
|
||||||
db.conn = util.sqlassert(sql.open("data/posts.db"))
|
db.conn = util.sqlassert(sql.open(config.db))
|
||||||
function configure(...)
|
function configure(...)
|
||||||
|
|
||||||
--Create sql tables
|
--Create sql tables
|
||||||
|
|
Loading…
Reference in New Issue