用于GWT的SQLite数据库? [英] SQLite DB for GWT?

查看:107
本文介绍了用于GWT的SQLite数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用GWT为Chrome创建一个打包应用程序,我需要一个SQLite数据库。我似乎无法找到任何体面的资源。我已经看过gwt-mobile-webkit,是在gwt中使用sqlite的权威方法吗?当我按照他们的例子发现错误时,它似乎并未在一段时间内更新。基于缺乏结果,我想我不是在寻找正确的东西,任何指导?

d检查 gwt-mobile-webkit ,或者更具体地说数据库API 。虽然这个名字说移动,但它绝对适用于桌面。该库封装了HTML5数据库支持,该支持(取决于浏览器)是SQLite还是 IndexedDB 。还有很多其他重量较大的包装纸,但这是我见过的最好也是最简单的。


I'm trying to create a Packaged App for Chrome using GWT, I need an SQLite DB. I can't seem to find any decent resources on doing this. I've looked at gwt-mobile-webkit, is that the definitive way to use sqlite in gwt? I'm getting errors when I follow their example, it seems it hasn't been updated in awhile. Based on the lack of results I'm thinking I'm not searching for the right thing, any guidance?

解决方案

I'd check out gwt-mobile-webkit, or more specifically the Database API. Though the name says "mobile", it definitely works on the desktop. This library wraps the HTML5 database support, which (depending on the browser) is either SQLite or IndexedDB. There are plenty of other, heavier weight wrappers, but this is the best and easiest I've seen around.

这篇关于用于GWT的SQLite数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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