Sencha Mysql 查询 [英] Sencha Mysql Queries

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

问题描述

我即将使用 Sencha Touch 将 Android-Travellog 应用程序移植到其他平台.问题是,Sencha 只有一个存储系统来存储数据,但似乎没有实际进行 MySql 查询的可能性.而且由于我以前的应用程序中的大部分 Mysql 代码已经存在,因此使用 Senchas 新系统重做所有 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?

推荐答案

Sencha 存储和代理抽象掉了编写原始查询代码的需要.商店可以使用多个不同代理之一与不同的后端数据存储接口,其中之一是 SQL 代理,正如您在 源代码 提供基本数据查询的APIWebSQL 数据库.

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.

如果您想获得框架的全部好处并以Sencha 方式"做事,您可能需要从头开始并构建您的应用程序以使用 存储 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 查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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