mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
17 lines
254 B
V
17 lines
254 B
V
module mysql
|
|
|
|
fn get_error_msg(conn &C.MYSQL) string {
|
|
return string(C.mysql_error(conn))
|
|
}
|
|
|
|
fn get_errno(conn &C.MYSQL) int {
|
|
return C.mysql_errno(conn)
|
|
}
|
|
|
|
fn resolve_nil_str(ptr byteptr) string {
|
|
if isnil(ptr) {
|
|
return ''
|
|
}
|
|
return string(ptr)
|
|
}
|