如何从本机Iphone应用程序连接到远程数据库 [英] How to connect to a Remote Database from native Iphone app

查看:181
本文介绍了如何从本机Iphone应用程序连接到远程数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的原生iphone应用程序通过互联网连接到远程数据库(MySQL或SQL Server或Oracle)。我在System中找不到任何API或框架来添加。有没有人知道如何连接到远程数据库?高兴的帮助我。非常感谢

I want to connect to a remote database(MySQL or SQL Server or Oracle) via internet from my native iphone app. I can't find any API or Framework in System to add. does any one know how to connect to a remote Database? pleased help me. Thank you very much

推荐答案

我不是iPhone程序员,但我怀疑你想要进行一些抽象。

I'm not an iPhone programmer, but I would suspect you want some abstraction going on.

考虑编写一些与后端数据库通信的服务层,而不是尝试使本机数据库连接正常工作,并向客户端应用程序说出HTTP。

Instead of trying to make a native database connection work, consider writing some service layer that talks to the database on the back-end, and speaks HTTP to your client application.

很多很好的理由。安全问题主要在于他们。

Plenty of very good reasons for this. Security concerns chief among them.

这篇关于如何从本机Iphone应用程序连接到远程数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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