Connecting Swift Code with MySQL

Hi All, My Spring Greetings

I have an existing database up and running on local MS SQL server, and I want to be able to communicate and interact with that database from Xcode. I am writing an application for OS X in Swift, and the data that the application should use, is stored in that remote database.  The problem is, I can't seem to find any Swift library that could connect to the MS SQL server based database. So far, I have only found this open-source library: SQLClient in Objective-C, but it's quite difficult to have it set, especially as I am not familiar with the Objective-C. Also, I keep seeing this Core-Data library being mentioned anytime there is some communication with the database, but as far as I understand Core-Data doesn't know how to connect to the MS SQL database. Does anyone have any experience in connecting the Xcode Swift app to the remote MS SQL database? How should one do this? Any kind of advice is more than welcome, because right now I am kind of stuck with this problem.

as far as I understand Core Data doesn't know how to connect to the MS SQL database.

Correct. Core Data is primarily focused on local database access. It also supports sync’ing with CloudKit out of the box. It’s possible to bend it to do other things but that’s likely to be more work than building a standalone client library for whatever database you want to talk to.

So far, I have only found this open-source library: SQLClient in Objective-C

Are you referring to this:

https://github.com/martinrybak/SQLClient

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Connecting Swift Code with MySQL
 
 
Q