| 1 | module mysql |
| 2 | |
| 3 | #flag windows -I@VEXEROOT/thirdparty/mysql/include |
| 4 | |
| 5 | $if tinyc { |
| 6 | #flag windows @VEXEROOT/thirdparty/mysql/lib/libmysql.dll |
| 7 | } $else { |
| 8 | #flag windows @VEXEROOT/thirdparty/mysql/lib/libmysql.lib |
| 9 | } |
| 10 | |
| 11 | #include <mysql.h> # Please install https://dev.mysql.com/downloads/installer/ , then copy the include, lib, and bin folders to thirdparty/mysql. Make sure thirdparty/mysql/bin and thirdparty/mysql/lib are on PATH, or copy libmysql.dll next to the produced .exe |
| 12 | #include "@VMODROOT/vlib/db/mysql/mysql_compat.h" |
| 13 | |