MySQL support for Pjango.
- Need MySQL.
- Clone this repo.
- macOS: Use Swift Package Manager to gen a xcodeproj:
$ swift package generate-xcodeproj
- There are some tips for compile problem:
-
Edit
module.modulemap
. Set header:/usr/local/mysql-5.7.17-macos10.12-x86_64/include/mysql.h
. -
Target -> MySQL -> Build Settings -> Library Search Paths. Add
/usr/local/mysql/lib
. -
Target -> Pjango-MySQL -> Build Settings -> Other Linker Flags. Add
-L/usr/local/mysql/lib
- Linux: Use Swift Package Manager to compiling:
$ swift build
Also see Perfect-MySQL.
See: https://github.com/enums/pjango
Mail me: [email protected]