comparison examples/blog/src/lib/Db.luan @ 1396:a5f61890ad84

add check_postgres_password
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 10 Sep 2019 13:41:22 -0600
parents 9dfff82dfc59
children 0dc9837c16be
comparison
equal deleted inserted replaced
1395:9dfff82dfc59 1396:a5f61890ad84
1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error
3 local stringify = Luan.stringify or error()
1 local Lucene = require "luan:lucene/Lucene.luan" 4 local Lucene = require "luan:lucene/Lucene.luan"
2 local Io = require "luan:Io.luan" 5 local Io = require "luan:Io.luan"
3 local Hosting = require "luan:host/Hosting.luan" 6 local Hosting = require "luan:host/Hosting.luan"
4 local Logging = require "luan:logging/Logging.luan" 7 local Logging = require "luan:logging/Logging.luan"
5 local logger = Logging.logger "Db" 8 local logger = Logging.logger "Db"
6 9
7 10
8 local Db = {} 11 local Db = {}
9 12
10 local postgres_spec = Hosting.postgres_spec and Hosting.postgres_spec() 13 local postgres_spec = Hosting.postgres_spec and Hosting.postgres_spec()
14 --logger.info(stringify(postgres_spec))
11 15
12 local function completer(doc) 16 local function completer(doc)
13 return doc 17 return doc
14 end 18 end
15 19