mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
mysql: update documentation
This commit is contained in:
committed by
GitHub
parent
b01709e502
commit
39c5c9b966
@@ -1,16 +1,17 @@
|
||||
module mysql
|
||||
|
||||
// get_error_msg returns error message from MySQL instance.
|
||||
fn get_error_msg(conn &C.MYSQL) string {
|
||||
return string(C.mysql_error(conn))
|
||||
}
|
||||
|
||||
// get_errno returns error number from MySQL instance.
|
||||
fn get_errno(conn &C.MYSQL) int {
|
||||
return C.mysql_errno(conn)
|
||||
}
|
||||
|
||||
// resolve_nil_str returns empty string if passed value is a nil pointer.
|
||||
fn resolve_nil_str(ptr byteptr) string {
|
||||
if isnil(ptr) {
|
||||
return ''
|
||||
}
|
||||
if isnil(ptr) { return '' }
|
||||
return string(ptr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user