diff 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
line wrap: on
line diff
--- a/examples/blog/src/lib/Db.luan	Fri Oct 18 19:38:08 2019 -0600
+++ b/examples/blog/src/lib/Db.luan	Fri Oct 18 22:29:46 2019 -0600
@@ -3,7 +3,7 @@
 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"
+local Hosted = require "luan:host/Hosted.luan"
 local Time = require "luan:Time.luan"
 local Thread = require "luan:Thread.luan"
 local Logging = require "luan:logging/Logging.luan"
@@ -12,7 +12,7 @@
 
 local Db = {}
 
-local postgres_spec = Hosting.postgres_spec and Hosting.postgres_spec()
+local postgres_spec = Hosted.postgres_spec()
 --logger.info(stringify(postgres_spec))
 
 local function completer(doc)