Edit Page

sails.getDatastore()

Access a particular datastore, or the default datastore.

sails.getDatastore(datastoreName);

Usage

#
Argument Type Details
1 datastoreName 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.

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.

Reference

Reference