db.js
No description.

File Location

/goog/db/db.js


Public Protected Private

Global Functions

goog.db.deleteDatabase(nameopt_onBlocked) !goog.async.Deferred
Deletes a database once all open connections have been closed.
Arguments:
name : string
The name of the database to delete.
opt_onBlocked : goog.db.BlockedCallback=
Called if there are active connections to the database.
Returns: !goog.async.Deferred  A deferred object that will fire once the database is deleted.
code »
goog.db.openDatabase&openRequest.onblocked()
No description.
code »
goog.db.deleteDatabase&deleteRequest.onblocked()
No description.
code »
goog.db.openDatabase&openRequest.onerror()
No description.
code »
goog.db.deleteDatabase&deleteRequest.onerror()
No description.
code »
goog.db.openDatabase&openRequest.onsuccess()
No description.
code »
goog.db.deleteDatabase&deleteRequest.onsuccess()
No description.
code »
goog.db.openDatabase&openRequest.onupgradeneeded()
No description.
code »
goog.db.openDatabase(nameopt_versionopt_onUpgradeNeededopt_onBlocked) !goog.async.Deferred
Opens a database connection and wraps it.
Arguments:
name : string
The name of the database to open.
opt_version : number=
The expected version of the database. If this is larger than the actual version, opt_onUpgradeNeeded will be called (possibly after opt_onBlocked; see goog.db.BlockedCallback). If this is passed, opt_onUpgradeNeeded must be passed as well.
opt_onUpgradeNeeded : goog.db.UpgradeNeededCallback=
Called if opt_version is greater than the old version of the database. If opt_version is passed, this must be passed as well.
opt_onBlocked : goog.db.BlockedCallback=
Called if there are active connections to the database.
Returns: !goog.async.Deferred  The deferred database object.
code »

Directory db

File Reference