This project provides a Swift wrapper around the MariaDB client library, enabling access to MariaDB database servers.
This package builds with Swift Package Manager and is part of the Perfect project. It was written to be stand-alone and so does not require PerfectLib or any other components.
Ensure you have installed and activated the latest Swift tool chain.
OS X Build Notes
To install MariaDB connector:
brew install mariadb-connector-c
Linux Build Notes
Tests performed on Ubuntu 18.04. Prior to building this library, please ensure you install the required MariaDB library:
sudo apt-get install pkg-config libmariadb-dev
On older distros (like 16.04), you may need to install libmariadb-client-lgpl-dev instead of libmariadb-dev. On older versions, you will also need to create a pkg-config file. In such cases, create /usr/lib/pkgconfig/libmariadb.pc and make it look something like this:
Perfect - MariaDB Connector 简体中文
This project provides a Swift wrapper around the MariaDB client library, enabling access to MariaDB database servers.
This package builds with Swift Package Manager and is part of the Perfect project. It was written to be stand-alone and so does not require PerfectLib or any other components.
Ensure you have installed and activated the latest Swift tool chain.
OS X Build Notes
To install MariaDB connector:
Linux Build Notes
Tests performed on Ubuntu 18.04. Prior to building this library, please ensure you install the required MariaDB library:
On older distros (like 16.04), you may need to install libmariadb-client-lgpl-dev instead of libmariadb-dev. On older versions, you will also need to create a pkg-config file. In such cases, create /usr/lib/pkgconfig/libmariadb.pc and make it look something like this:
To test if pkg-config is working, try running the command:
Building
Add this project as a dependency in your Package.swift file.
Import required libraries:
Perfect-MariaDB supports the Perfect-CRUD protocol. Please check Perfect-CRUD for more information.
Further Information
For more information on the Perfect project, please visit perfect.org.