Connect to an Oracle Database with Swift

I am using the new UI Automation in xCode 7/iOS 9 and I would like to verify some results in an Oracle Database. Is this possible to do in Swift? If not what are my other solutions?

Accepted Answer

FYI for those wondering:


In most environments, direct DB access from a mobile device is discouraged (to put it mildly). Because of this, there is almost no pressure to create direct database access libraries for the mobile platforms.


The *suggested* models are to implement the data access as web services and to consume them on mobile via https:// and JSON or XML. I don't agree with this but.. what can you do

Given that swift is now a server side language as well this is no longer an even vaguely correct answer.

you can use Vapor backend for API. Here is an example you can follow https://github.com/iliasaz/vapor-oracle In addition to that you have to install several libraries, follow this link for guidance https://stackoverflow.com/questions/42960601/connecting-to-oracle-database-using-server-side-swift

Now generate API and use it in your app

Connect to an Oracle Database with Swift
 
 
Q