资 源 简 介
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