summaryrefslogtreecommitdiff
path: root/base/mysql.hh
diff options
context:
space:
mode:
Diffstat (limited to 'base/mysql.hh')
-rw-r--r--base/mysql.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/base/mysql.hh b/base/mysql.hh
index b2e87dcbd..e16558dd3 100644
--- a/base/mysql.hh
+++ b/base/mysql.hh
@@ -185,6 +185,24 @@ class Connection
return query(sql.str());
}
+ bool
+ autocommit(bool mode)
+ {
+ return mysql_autocommit(&mysql, mode);
+ }
+
+ bool
+ commit()
+ {
+ return mysql_commit(&mysql);
+ }
+
+ bool
+ rollback()
+ {
+ return mysql_rollback(&mysql);
+ }
+
unsigned
field_count()
{