Indexed DB support

215 views
Skip to first unread message

Gilad Egozi

unread,
Jul 8, 2012, 7:23:41 AM7/8/12
to google-we...@googlegroups.com
Hello,

Having that LocalStorage is very limited in size and query functionality, and WebSQL being a deprecated specification, I'm more-or-less forced to use Indexed-DB (I have a demand for a rather big storage for offline data in my application).
I find it rather surprising that there no *mature* library to support it. I am aware of indexeddb-gwt and gwt-indexeddb, but both seem not mature nor maintained enough.

Am I missing something here? Is there some other library that can do the job? Is the best approach simply to use JSNI?

Any help from someone who dealt with this issue would be very appreciated. Thanks.

Gilad.

Jens

unread,
Jul 8, 2012, 8:11:48 AM7/8/12
to google-we...@googlegroups.com
You could use Elemental (GWT 2.5) I guess. Only downside could be that it only works in Webkit browsers because of vendor prefixes. But maybe thats your target browser anyway.

-- J.

Cristian Rinaldi

unread,
Sep 20, 2012, 8:36:41 PM9/20/12
to google-we...@googlegroups.com
1) I am using IndexedDB with Elemental API, but is implemented the old specification of IndexedDB and I can't find the way to assign the version, therefore, the VersionChange is never launched.

2) Try updating WebCore with all IDL, but when running the build script, the parser,  throws the following error.


Traceback (most recent call last):
  File ". / Scripts / elemental_fremontcutbuilder.py", line 217, in <module>
    sys.exit (main ())
  File ". / Scripts / elemental_fremontcutbuilder.py", line 214, in main
    build_database return (idl_files, database_dir)
  File ". / Scripts / elemental_fremontcutbuilder.py", line 139, in build_database
    builder.import_idl_file (file_name, webkit_options)
  File "/ home / cristian / Logikas / Frameworks / gwt-source / trunk / elementary / idl / scripts / databasebuilder.py", line 472, in import_idl_file
    idl_file = self._load_idl_file (file_path, import_options)
  File "/ home / cristian / Logikas / Frameworks / gwt-source / trunk / elementary / idl / scripts / databasebuilder.py", line 86, in _load_idl_file
    raise RuntimeError ('Failed to load file% s:% s'% (file_name, e))
RuntimeError: Failed to load file ./scripts/../third_party/WebCore/html/canvas/Uint8ClampedArray.idl: At line 37 offset 28: Expected "(" or "]" or "," but "c" found " TypedArray = unsigned char "
Traceback (most recent call last):
  File ". / Scripts / elementaldomgenerator.py", line 164, in <module>
    sys.exit (main ())
  File ". / Scripts / elementaldomgenerator.py", line 155, in main
    database_dir, use_database_cache)
  File ". / Scripts / elementaldomgenerator.py", line 120, in GenerateDOM
    systems = systems)
  File "/ home / cristian / Logikas / Frameworks / gwt-source / trunk / elementary / idl / scripts / elementalgenerator.py", line 279, in Generate
    self.PopulateMixinBase (self._database.GetInterface ('ElementalMixinBase'), mixins)
  File "/ home / cristian / Logikas / Frameworks / gwt-source / trunk / elementary / idl / scripts / database.py", line 188, in GetInterface
    raise RuntimeError ('Interface% s is not loaded'% interface_name)
RuntimeError: Interface is not loaded ElementalMixinBase

Any ideas about the two problems?
Reply all
Reply to author
Forward
0 new messages