mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
mysql: patch for Windows and FreeBSD (#6703)
This commit is contained in:
parent
e2505479ee
commit
f934ca37c9
@ -1,11 +1,14 @@
|
|||||||
module mysql
|
module mysql
|
||||||
|
|
||||||
|
[typedef]
|
||||||
struct C.MYSQL {
|
struct C.MYSQL {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[typedef]
|
||||||
struct C.MYSQL_RES {
|
struct C.MYSQL_RES {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[typedef]
|
||||||
struct C.MYSQL_FIELD {
|
struct C.MYSQL_FIELD {
|
||||||
name byteptr // Name of column
|
name byteptr // Name of column
|
||||||
org_name byteptr // Original column name, if an alias
|
org_name byteptr // Original column name, if an alias
|
||||||
|
5
vlib/mysql/_cdefs_nix.c.v
Normal file
5
vlib/mysql/_cdefs_nix.c.v
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module mysql
|
||||||
|
|
||||||
|
#pkgconfig mysqlclient
|
||||||
|
#include <mysql.h> # Please install the mysqlclient development headers
|
||||||
|
|
5
vlib/mysql/_cdefs_windows.c.v
Normal file
5
vlib/mysql/_cdefs_windows.c.v
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module mysql
|
||||||
|
|
||||||
|
#flag windows -I@VROOT/thirdparty/mysql/include
|
||||||
|
#flag windows @VROOT/thirdparty/mysql/lib/libmysql.dll
|
||||||
|
#include <mysql.h> # Please install https://dev.mysql.com/downloads/installer/ , then put the include/ and lib/ folders in thirdparty/mysql
|
@ -1,8 +1,5 @@
|
|||||||
module mysql
|
module mysql
|
||||||
|
|
||||||
#flag -lmysqlclient
|
|
||||||
#flag linux -I/usr/include/mysql
|
|
||||||
#include <mysql.h>
|
|
||||||
// TODO: Documentation
|
// TODO: Documentation
|
||||||
pub struct Connection {
|
pub struct Connection {
|
||||||
mut:
|
mut:
|
||||||
|
Loading…
Reference in New Issue
Block a user