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.

Check out the official Sails VS Code extension

Documentation

App Structure


Sails logo

Anatomy of a Sails App

AltStyle によって変換されたページ (->オリジナル) /