Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- a/examples/blog/src/lib/Db.luan Mon Sep 09 01:22:23 2019 -0600 +++ b/examples/blog/src/lib/Db.luan Tue Sep 10 13:41:22 2019 -0600 @@ -1,3 +1,6 @@ +local Luan = require "luan:Luan.luan" +local error = Luan.error +local stringify = Luan.stringify or error() local Lucene = require "luan:lucene/Lucene.luan" local Io = require "luan:Io.luan" local Hosting = require "luan:host/Hosting.luan" @@ -8,6 +11,7 @@ local Db = {} local postgres_spec = Hosting.postgres_spec and Hosting.postgres_spec() +--logger.info(stringify(postgres_spec)) local function completer(doc) return doc