mysql: patch for Windows and FreeBSD (#6703)

pull/6709/head
sunnylcw 2020-11-02 05:15:33 +08:00 committed by GitHub
parent e2505479ee
commit f934ca37c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
module mysql
#pkgconfig mysqlclient
#include <mysql.h> # Please install the mysqlclient development headers

View 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

View File

@ -1,8 +1,5 @@
module mysql
#flag -lmysqlclient
#flag linux -I/usr/include/mysql
#include <mysql.h>
// TODO: Documentation
pub struct Connection {
mut: