Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 811 Bytes

sails.getDatastore.md

File metadata and controls

22 lines (14 loc) · 811 Bytes

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.