首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > gwt-storage-html5

gwt-storage-html5

  • 资源大小:431.34 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Goal The goal of this lib is to allow to store a SQL Database on browser side. The SQL Database is a sqlite database compiled in JavaScript and store either with IndexedDB or WebSQLDatabase. The full lib is GWT compliant. Browser Support 1 FireFox,IE10 (IndexedDB) 2 Chrome (IndexedDB, WebSQLDatabase) 3 Safari,Opera (WebSQLDatabase) Sample 1 Get a storage engine through StoreDataServiceFactory. final StoreDataService dataService=StoreDataServiceFactory.getInstance(); 2 Open a database "MyDatabase" in a asynchronous way dataService.getDatabase("MyDatabase",new DatabaseOpenHandler(){ @Override public void onSucceed(DatabaseOpenEvent event) { SQLite c=event.getSQLite(); }}); 3 Play with SQLite in a synchronous way c.exec("CREATE TABLE A (KEY INTEGER)");c.exec("insert into A values(3)");c.exec("select * from A &quo

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.246377s