mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
Revert "db: increase db module level in vlib "
This reverts commit cd6d175180
.
This commit is contained in:
parent
cd6d175180
commit
ec4be80bcc
17 changed files with 37 additions and 34 deletions
16
vlib/mysql/utils.v
Normal file
16
vlib/mysql/utils.v
Normal file
|
@ -0,0 +1,16 @@
|
|||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue