1
0
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:
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 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

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