Edit Page

config/datastores

A set of datastore configurations which tell Sails where to fetch or save data when you execute built-in model methods like .find() and .create().

This file is mainly useful for configuring your development database, as well as any additional one-off databases used by individual models.

Usage

#

See sails.config.datastores for all available options.

Want to see for yourself?

An example of this file can be found in our sample app repo, here.

Anatomy of a Sails App