Access a particular datastore, or the default datastore.
sails.getDatastore(datastoreName);
| Argument | Type | Details | |
|---|---|---|---|
| 1 | datastoreName | 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. |
Type:
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.