Class: StoreAdapter

StoreAdapter

new StoreAdapter()

A store adapter is the low-level provider of database functionality for Ottoman's internal storage system.

Type Definitions

CreateIndexCallback(err)

This callback is invoked by store adapter createIndex operations.

Parameters:
Name Type Description
err Error

Any errors that occured during the processing of the request.

EnsureCallback(err)

This callback is invoked by store adapter ensure operations.

Parameters:
Name Type Description
err Error

Any errors that occured during the processing of the request.

GetCallback(err, value, cas)

This callback is invoked by store adapter get operations.

Parameters:
Name Type Description
err Error

Any errors that occured during the processing of the request.

value Object

The value of the requested document

cas Object

An opaque identifier representing the current state of this document.

RemoveCallback(err)

This callback is invoked by store adapter remove operations.

Parameters:
Name Type Description
err Error

Any errors that occured during the processing of the request.

SearchCallback(err, results)

This callback is invoked by store adapter search operations.

Parameters:
Name Type Description
err Error

Any errors that occured during the processing of the request.

results Array.<Object>

A list of result documents from the search.

StoreCallback(err, cas)

This callback is invoked by store adapter store operations.

Parameters:
Name Type Description
err Error

Any errors that occured during the processing of the request.

cas Object

An opaque identifier representing the current state of this document.