Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PerfectlySoft/Perfect-MySQL
A stand-alone Swift wrapper around the MySQL client library, enabling access to MySQL servers.
https://github.com/PerfectlySoft/Perfect-MySQL
mysql mysql-client mysql-connection mysql-servers perfect server-side-swift swift
Last synced: 3 days ago
JSON representation
A stand-alone Swift wrapper around the MySQL client library, enabling access to MySQL servers.
- Host: GitHub
- URL: https://github.com/PerfectlySoft/Perfect-MySQL
- Owner: PerfectlySoft
- License: apache-2.0
- Created: 2016-04-04T13:49:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-08T19:02:56.000Z (almost 4 years ago)
- Last Synced: 2024-11-23T06:02:54.360Z (19 days ago)
- Topics: mysql, mysql-client, mysql-connection, mysql-servers, perfect, server-side-swift, swift
- Language: Swift
- Homepage: https://www.perfect.org
- Size: 3.5 MB
- Stars: 127
- Watchers: 8
- Forks: 60
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - MySQL - A Swift wrapper around the MySQL client library, enabling access to MySQL servers. (Database / Getting Started)
- awesome-swift - Perfect-MySQL - A stand-alone wrapper around the MySQL client library, enabling access to MySQL servers. (Libs / Data Management)
- TheList - Perfect MySQL connector - A stand-alone Swift wrapper around the MySQL client library. (Database Connectors / MySQL)
- awesome-swift - Perfect-MySQL - A stand-alone wrapper around the MySQL client library, enabling access to MySQL servers. (Libs / Data Management)
- fucking-awesome-swift - Perfect-MySQL - A stand-alone wrapper around the MySQL client library, enabling access to MySQL servers. (Libs / Data Management)
- awesome-ios-star - MySQL - A Swift wrapper around the MySQL client library, enabling access to MySQL servers. (Database / Getting Started)
- fucking-awesome-ios - MySQL - A Swift wrapper around the MySQL client library, enabling access to MySQL servers. (Database / Getting Started)
- fucking-awesome-ios - MySQL - A Swift wrapper around the MySQL client library, enabling access to MySQL servers. (Database / Getting Started)
- awesome-swift - Perfect-MySQL - A stand-alone Swift wrapper around the MySQL client library, enabling access to MySQL servers. ` 📝 2 years ago` (Data Management [🔝](#readme))
README
# Perfect - MySQL Connector
This project provides a Swift wrapper around the MySQL client library, enabling access to MySQL database servers.
This package builds with Swift Package Manager and is part of the [Perfect](https://github.com/PerfectlySoft/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 4.1.2 tool chain.
## macOS Build Notes
This package requires the [Home Brew](http://brew.sh) build of MySQL.
To install Home Brew:
```
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```To install MySQL:
```
brew install [email protected]
```Unfortunately, at this point in time you will need to edit the mysqlclient.pc file located here:
```
/usr/local/lib/pkgconfig/mysqlclient.pc
```Remove the occurrance of "-fno-omit-frame-pointer". This file is read-only by default so you will need to change that first.
If you get a **link error** while build in Xcode, please, close XCode, open a New terminal, go to the place where you have your Packages.swift and build the project again:
```
swift package generate-xcodeproj
```
After this you have to set the path for libraries again.## Linux Build Notes
Ensure that you have installed libmysqlclient-dev for MySQL version *5.6 or greater*.
```
sudo apt-get install libmysqlclient-dev
```Please note that Ubuntu 14 defaults to including a version of MySQL client which will not compile with this package. Install MySQL client version 5.6 or greater.
## Building
Add this project as a dependency in your Package.swift file.
``` swift
.package(url:"https://github.com/PerfectlySoft/Perfect-MySQL.git", from: "3.0.0")
```## Documentation
For more information, please visit [perfect.org](http://www.perfect.org/docs/MySQL.html).