bsw@1145: -- open and set default database handle bsw@1145: _G.db = assert(mondelefant.connect(config.database)) bsw@1145: bsw@1145: function mondelefant.class_prototype:get_db_conn() return db end bsw@1145: bsw@1145: execute.inner() bsw@1145: bsw@1145: -- close the database bsw@1145: db:close()