Skip to content

WriteableTable

David Fahlander edited this page Apr 7, 2016 · 19 revisions

The WriteableTable class represents an IDBObjectStore opened from an "rw" transaction or retrieved from Dexie.table()

Inheritance Hierarchy

Properties

The name of the object store represented by this Table instance.

The table schema of this object store.

Methods

Insert an object into store.

Apply given changes to an existing object.

Replace or insert object.

Delete an object from store.

Same as add() but takes array arguments and is optimized for adding a large number of objects.

Same as put() but takes array arguments and is optimized for putting a large number of objects.

Same as delete() but takes and array of keys and is optimized for deleting a large number of objects.

Clear all objects in store.

Methods derived from Table

Retrieve object by primary key.

Retrieve objects using a query.

Apply javascript filter on all items in the object store

Count all objects.

Return a Collection ordered by primary key, where the first N items in the table are ignored.

Return a Collection ordered by primary key, limited to N items.

Iterate all objects in store.

Get an array containing all objects in store.

Get a Collection containing all objects in store.

Returns a Collection instance ordered by given index.

Returns a Collection instance with reversed order of the primary key.

Map this table to javascript constructor function.

Define a javascript constructor function and map to this table.

Clone this wiki locally