comparison examples/blog/src/lib/Db.luan @ 1418:732b5de211fc

add Hosted.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 18 Oct 2019 22:29:46 -0600
parents 1979cff9aad2
children 82415c9c0015
comparison
equal deleted inserted replaced
1417:c7f9dd062eda 1418:732b5de211fc
1 local Luan = require "luan:Luan.luan" 1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error 2 local error = Luan.error
3 local stringify = Luan.stringify or error() 3 local stringify = Luan.stringify or error()
4 local Lucene = require "luan:lucene/Lucene.luan" 4 local Lucene = require "luan:lucene/Lucene.luan"
5 local Io = require "luan:Io.luan" 5 local Io = require "luan:Io.luan"
6 local Hosting = require "luan:host/Hosting.luan" 6 local Hosted = require "luan:host/Hosted.luan"
7 local Time = require "luan:Time.luan" 7 local Time = require "luan:Time.luan"
8 local Thread = require "luan:Thread.luan" 8 local Thread = require "luan:Thread.luan"
9 local Logging = require "luan:logging/Logging.luan" 9 local Logging = require "luan:logging/Logging.luan"
10 local logger = Logging.logger "Db" 10 local logger = Logging.logger "Db"
11 11
12 12
13 local Db = {} 13 local Db = {}
14 14
15 local postgres_spec = Hosting.postgres_spec and Hosting.postgres_spec() 15 local postgres_spec = Hosted.postgres_spec()
16 --logger.info(stringify(postgres_spec)) 16 --logger.info(stringify(postgres_spec))
17 17
18 local function completer(doc) 18 local function completer(doc)
19 return doc 19 return doc
20 end 20 end