Software /
code /
prosody
Diff
util/sql.lua @ 6752:3cc2bc9c1bff
Merge with 0.10
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 06 Jul 2015 17:07:05 +0100 |
parent | 6748:ccf4fcfc2024 |
child | 6758:88b89facc3c9 |
line wrap: on
line diff
--- a/util/sql.lua Mon Jun 29 13:50:31 2015 +0100 +++ b/util/sql.lua Mon Jul 06 17:07:05 2015 +0100 @@ -111,8 +111,12 @@ self.conn = dbh; self.prepared = {}; self:set_encoding(); + self:onconnect(); return true; end +function engine:onconnect() + -- Override from create_engine() +end function engine:execute(sql, ...) local success, err = self:connect(); if not success then return success, err; end