Use database from config

Use the database file that came from the config file.
This commit is contained in:
Robin Malley 2021-08-27 01:06:55 +00:00
parent 7e5e38c3f2
commit f88ec0e22a
1 changed files with 2 additions and 1 deletions

View File

@ -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