本文介绍了Sencha Mysql查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将使用Sencha Touch将Android-Travellog应用程序移植到其他Plattform。
问题是,Sencha只有一个存储系统才能存储数据,但似乎没有可能会使MySql查询。
由于我以前的应用程序中的大多数Mysql代码都已经存在,所以使用Senchas new System重新编写所有内容时,id将会相当痛苦。
有没有可能使用Sencha的mysql(或任何其他sql)查询来存储数据在电话上?

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?

推荐答案

p> Sencha存储和代理抽象出需要编写原始查询代码。商店可以使用许多中的一种与不同的后端数据存储接口,其中之一是,您可以在提供了基本数据查询的API 数据库。

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.

如果您希望获得框架的全部优势,并执行S​​encha方式,您可能希望从头开始并构建您的应用程序,使用存储API

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.

这篇关于Sencha Mysql查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 17:53