在Swift中连接到Oracle数据库 [英] Connect to an Oracle Database in Swift

查看:240
本文介绍了在Swift中连接到Oracle数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode 7,Swift和在WWDC 15上宣布的新UI自动化.我想在运行某些UI自动化测试之后在oracle数据库中测试某些东西.

I am using Xcode 7, Swift, and the new UI Automation announced at WWDC 15. I want to test some things in an oracle database after some of my UI automation tests have run.

可以做到吗?如果是这样,您该怎么做?我似乎找不到关于该主题的任何文档.

Can this be done? If so how do you do it? I can't seem to find any sort of documentation on the subject.

推荐答案

手机不能保证永久稳定的网络连接,这是直接连接到DB的大问题. 对于移动平台,您需要在服务器上创建一个Web服务,该服务将完成数据库和移动应用程序之间的所有工作.不建议直接连接数据库,除非是本地数据库(SQLite).

The mobile phone doesn't guarantee a permanent and stable network connection and is a big problem for direct connection to DB. For mobile platforms you need to create a web service on a server that will do all the work between database and mobile application. It is not recommended to connect directly to databases, except when it is local databases(SQLite).

这篇关于在Swift中连接到Oracle数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆