liquid_feedback_frontend
view app/main/_postfork/10_database.lua @ 1146:ce9daada32dd
Removed unnecessary image from style
author | bsw |
---|---|
date | Sun Mar 22 17:32:05 2015 +0100 (2015-03-22) |
parents | 904f6807f7fa |
children | 911253ad0898 |
line source
1 -- open and set default database handle
2 _G.db = assert(mondelefant.connect(config.database))
4 function mondelefant.class_prototype:get_db_conn() return db end
6 -- enable output of SQL commands in trace system
7 function db:sql_tracer(command)
8 return function(error_info)
9 local error_info = error_info or {}
10 trace.sql{ command = command, error_position = error_info.position }
11 end
12 end
14 execute.inner()
16 -- close the database
17 db:close()