Connecting any database directly from flex

徘徊边缘 提交于 2020-01-02 19:37:10

问题


Is it possible to connect any database from flex directly?


回答1:


Not unless you use Adobe AIR for desktop at which time you'd be using the SQLLite api's to create/connect to a sqlite database file.

http://livedocs.adobe.com/flex/3/html/help.html?content=SQL_01.html

Anything else is going to require a back end service to handle such transactions.




回答2:


You can use asSQL as mentioned by michael, or use the Adobe Air runtime.

However, this must be said about using this library: It is EXTREMELY insecure to have a straight database connection from the client unless it's from Adobe Air since the db is local.

You don't want to send your username/password over the internet to connect to a database unless you really don't care about the data or security of your data. I would recommend you use a middleware solution, like PHP or Java that interfaces your database for your client to get the data it needs.




回答3:


You may try asSQL.

http://ntt.cc/2008/02/01/actionscript-mysql-driver-assql-access-database-from-flex.html

http://code.google.com/p/assql/source/browse/trunk/assql/asSQL_PureAS3/src/com/maclema/mysql/Connection.as



来源:https://stackoverflow.com/questions/5418055/connecting-any-database-directly-from-flex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!