1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/mysql/utils.v
Alexander Medvednikov ec4be80bcc Revert "db: increase db module level in vlib "
This reverts commit cd6d175180.
2020-03-26 09:23:54 +01:00

17 lines
246 B
V

module mysql
fn get_error_msg(conn &MYSQL) string {
return string(mysql_error(conn))
}
fn get_errno(conn &MYSQL) int {
return mysql_errno(conn)
}
fn resolve_nil_str(ptr byteptr) string {
if isnil(ptr) {
return ''
}
return string(ptr)
}