db: increase db module level in vlib

This commit is contained in:
yuyi 2020-03-26 16:21:34 +08:00 committed by GitHub
parent fb4f7b6827
commit cd6d175180
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 34 additions and 37 deletions

View file

@ -1,16 +0,0 @@
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)
}