The goog.db Namespace

The goog.db.Cursor Class

Creates a new IDBCursor wrapper object. Should not be created directly, access cursor through object store. … more

The goog.db.Error Class

A database error. Since the stack trace can be unhelpful in an asynchronous context, the error provides a message about where it was produced. … more

The goog.db.Index Class

Creates an IDBIndex wrapper object. Indexes are associated with object stores and provide methods for looking up objects based on their non-key properties. Should not be created directly, access through the object store it belongs to. … more

The goog.db.IndexedDb Class

Creates an IDBDatabase wrapper object. The database object has methods for setting the version to change the structure of the database and for creating transactions to get or modify the stored records. Should not be created directly, call {@link goog.db.openDatabase} to set up the connection. … more

The goog.db.KeyRange Class

Creates a new IDBKeyRange wrapper object. Should not be created directly, instead use one of the static factory methods. For example: … more

The goog.db.ObjectStore Class

Creates an IDBObjectStore wrapper object. Object stores have methods for storing and retrieving records, and are accessed through a transaction object. They also have methods for creating indexes associated with the object store. They can only be created when setting the version of the database. Should not be created directly, access object stores through transactions. … more

The goog.db.Transaction Class

Creates a new transaction. Transactions contain methods for accessing object stores and are created from the database object. Should not be created directly, open a database and call createTransaction on it. … more

.openDatabase(name)

Opens a database connection and wraps it.

name {string}
The name of the database to open.
returns {!goog.async.Deferred}
The deferred database object.