Back to Sails

sails.getDatastore()

docs/reference/application/sails.getDatastore.md

12.12.2000810 B
Original Source

sails.getDatastore()

Access a particular datastore, or the default datastore.

usage
sails.getDatastore(datastoreName);

Usage

ArgumentTypeDetails
1datastoreName((string?))If specified, this is the name of the datastore to look up. Otherwise, if you leave this blank, this getDatastore() will return the default datastore for your app.

Returns

Type: ((Dictionary))

A datastore instance.

<docmeta name="displayName" value="sails.getDatastore()"> <docmeta name="pageType" value="method">