Mercurial Hosting > luan
comparison examples/blog/src/lib/test.luan @ 1220:4721c482c86b
cleaner Db example
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 21 Mar 2018 15:54:57 -0600 |
parents | a50803fde972 |
children | 4416b9cbebf9 |
comparison
equal
deleted
inserted
replaced
1219:b602badc876b | 1220:4721c482c86b |
---|---|
8 local Io = require "luan:Io.luan" | 8 local Io = require "luan:Io.luan" |
9 local print = Io.print or error() | 9 local print = Io.print or error() |
10 local String = require "luan:String.luan" | 10 local String = require "luan:String.luan" |
11 local matches = String.matches or error() | 11 local matches = String.matches or error() |
12 | 12 |
13 Http.uncache_site() | |
14 | |
15 local Db_mod = require "site:/lib/Db_mod.luan" | |
16 | |
17 Db_mod.lucene_dir = "site:/private/local/lucene_test" | |
18 local Db = require "site:/lib/Db.luan" | 13 local Db = require "site:/lib/Db.luan" |
19 Db.delete_all() | 14 Db.db = Db.new_db("site:/private/local/lucene_test") |
15 Db.db.delete_all() | |
20 | 16 |
21 local Post = require "site:/lib/Post.luan" | 17 local Post = require "site:/lib/Post.luan" |
22 local page | 18 local page |
23 | 19 |
24 print 'go' | 20 print 'go' |