> For the complete documentation index, see [llms.txt](https://dexiejs.typogram.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexiejs.typogram.co/table.md).

# Table

The Table class represents an IDBObjectStore.

#### Properties

**name**

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

**schema**

The table schema of this object store.

#### Events

**hook('creating')**

Atomic CRUD hook called when object is about to be created in db.

**hook('reading')**

Atomic CRUD hook called when object has been read from db and is about to be delivered to caller.

**hook('updating')**

Atomic CRUD hook called when object is about to be modified in db.

**hook('deleting')**

Atomic CRUD hook called when object is about to be deleted from db.

#### Methods

[**add()**](/table/table.add.md)

Insert an object into store.

[**bulkAdd()**](/table/table.bulkadd.md)

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

[**bulkDelete()**](/table/table.bulkdelete.md)

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

[**bulkPut()**](/table/table.bulkput.md)

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

[**clear()**](/table/table.clear.md)

Clear all objects in store.

[**count()**](/table/table.count.md)

Count all objects.

[**defineClass()**](/table/table.defineclass.md)

Define a javascript constructor function and map to this table.

[**delete()**](/table/table.delete.md)

Delete an object from store.

[**each()**](/table/table.each.md)

Iterate all objects in store.

[**filter()**](/table/table.filter.md)

Apply javascript filter on all items in the object store

[**get()**](/table/table.get.md)

Retrieve object by primary key.

[**limit()**](/table/table.limit.md)

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

[**mapToClass()**](/table/table.maptoclass.md)

Map this table to javascript constructor function.

[**orderBy()**](/table/table.orderby.md)

Returns a Collection instance ordered by given index.

[**offset()**](/table/table.offset.md)

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

[**put()**](/table/table.put.md)

Replace or insert object.

[**reverse()**](/table/table.reverse.md)

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

[**toArray()**](/table/table.toarray.md)

Get an array containing all objects in store.

[**toCollection()**](/table/table.tocollection.md)

Get a Collection containing all objects in store.

[**update()**](/table/table.update.md)

Apply given changes to an existing object.

[**where()**](/table/table.where.md)

Retrieve objects using a query.

#### See Also

[**Collection**](/collection.md)
