Menu
©2015
Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2015-1-16 18:32

Class puredom.LocalStorage.adapters.WebSQLAdapter

  • Storage adapter that persists data into HTML5 LocalStorage.

  • Defined in: WebSQLAdapter.js
Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<static>  
puredom.LocalStorage.adapters.WebSQLAdapter.dbInfo
Default database identification info.
<static>  
puredom.LocalStorage.adapters.WebSQLAdapter.defaultName
The default cookie ID to use for database storage
<static>  
puredom.LocalStorage.adapters.WebSQLAdapter.rating
This adapter is the fastest storage mechanism for Webkit.

Method Summary

Method Attributes Method Name and Description
<static>  
puredom.LocalStorage.adapters.WebSQLAdapter. load (storage, callback)
Load the persisted DB
<static>  
puredom.LocalStorage.adapters.WebSQLAdapter. save (storage, data, callback)
Save the DB to persistence.
<static>  
puredom.LocalStorage.adapters.WebSQLAdapter. test (storage)
Test if this adapter will work in the current environment

Class Detail

puredom.LocalStorage.adapters.WebSQLAdapter()

Field Detail

<static> puredom.LocalStorage.adapters.WebSQLAdapter.dbInfo
Default database identification info.
<static> puredom.LocalStorage.adapters.WebSQLAdapter.defaultName
The default cookie ID to use for database storage
<static> puredom.LocalStorage.adapters.WebSQLAdapter.rating
This adapter is the fastest storage mechanism for Webkit.
Web SQL has also be discontinued in favour of IndexedDB. Who knew SQL would turn out to be annoying? ...
In terms of complexity, clearly LocalStorage is better, but for now this adapter can stay at the top of the list.

Method Detail

  • <static> puredom.LocalStorage.adapters.WebSQLAdapter.load(storage, callback)
    Load the persisted DB
    Parameters:
    {Any}storage
    {Any}callback
  • <static> puredom.LocalStorage.adapters.WebSQLAdapter.save(storage, data, callback)
    Save the DB to persistence.
    Parameters:
    {Any}storage
    {Any}data
    {Any}callback
  • <static> puredom.LocalStorage.adapters.WebSQLAdapter.test(storage)
    Test if this adapter will work in the current environment
    Parameters:
    {Any}storage