I'm about to port an Android-Travellog App to other Plattforms using Sencha Touch. The Problem is, that Sencha only has a Store System to store Data, but doesnt appear to have a possibilty to acctually make MySql queries. And since most of the Mysql code in my previous app is already there, id would be quite a pain to redo everything with Senchas new System. Is there a possibilty to use mysql (or any other sql) queries with Sencha to Store Data on the Phone?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Sencha stores and proxies abstract away the need to write raw query code. A store can use one of a number of different proxies for interfacing with different back-end data stores, one of which is the SQL proxy, which as you can see in the source code provides an API for basic data querying WebSQL databases.
If you want to gain the full benefit of the framework and do things the "Sencha way" you'll probably want to start from scratch and architect your app to use the stores API.