mysql: patch for Windows and FreeBSD (#6703)
parent
e2505479ee
commit
f934ca37c9
|
@ -1,11 +1,14 @@
|
|||
module mysql
|
||||
|
||||
[typedef]
|
||||
struct C.MYSQL {
|
||||
}
|
||||
|
||||
[typedef]
|
||||
struct C.MYSQL_RES {
|
||||
}
|
||||
|
||||
[typedef]
|
||||
struct C.MYSQL_FIELD {
|
||||
name byteptr // Name of column
|
||||
org_name byteptr // Original column name, if an alias
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
module mysql
|
||||
|
||||
#pkgconfig mysqlclient
|
||||
#include <mysql.h> # Please install the mysqlclient development headers
|
||||
|
|
@ -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
|
||||
|
||||
#flag -lmysqlclient
|
||||
#flag linux -I/usr/include/mysql
|
||||
#include <mysql.h>
|
||||
// TODO: Documentation
|
||||
pub struct Connection {
|
||||
mut:
|
||||
|
|
Loading…
Reference in New Issue