1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

mysql: add the ability to commit transactions, some code improvements (#18268)

This commit is contained in:
Mark aka walkingdevel
2023-05-26 00:16:02 +00:00
committed by GitHub
parent 8a856cc36d
commit b698a0f459
2 changed files with 90 additions and 60 deletions

View File

@ -80,7 +80,10 @@ fn C.mysql_num_fields(res &C.MYSQL_RES) int
fn C.mysql_num_rows(res &C.MYSQL_RES) u64
// C.mysql_autocommit sets autocommit mode on if `mode` is 1, off if `mode` is 0.
fn C.mysql_autocommit(mysql &C.MYSQL, mode bool)
fn C.mysql_autocommit(mysql &C.MYSQL, mode bool) int
// C.mysql_commit commits the current transaction.
fn C.mysql_commit(mysql &C.MYSQL) int
// C.mysql_refresh flush tables or caches, or resets replication server information.
fn C.mysql_refresh(mysql &C.MYSQL, options u32) int