-
Notifications
You must be signed in to change notification settings - Fork 23
/
connections.js
42 lines (38 loc) · 1.9 KB
/
connections.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Connections
* (sails.config.connections)
*
* `Connections` are like "saved settings" for your adapters. What's the difference between
* a connection and an adapter, you might ask? An adapter (e.g. `sails-mysql`) is generic--
* it needs some additional information to work (e.g. your database host, password, user, etc.)
* A `connection` is that additional information.
*
* Each model must have a `connection` property (a string) which is references the name of one
* of these connections. If it doesn't, the default `connection` configured in `config/models.js`
* will be applied. Of course, a connection can (and usually is) shared by multiple models.
* .
* Note: If you're using version control, you should put your passwords/api keys
* in `config/local.js`, environment variables, or use another strategy.
* (this is to prevent you inadvertently sensitive credentials up to your repository.)
*
* For more information on configuration, check out:
* http://sailsjs.org/#/documentation/reference/sails.config/sails.config.connections.html
*/
module.exports.connections = {
/***************************************************************************
* *
* OrientDB is a NoSQL Document and Graph DBMS. *
* http://en.wikipedia.org/wiki/OrientDB *
* *
* Run: npm sails-orientdb *
* *
***************************************************************************/
someOrientdbServer: {
adapter: 'sails-orientdb',
host: 'localhost',
port: 2424,
user: 'YOUR_ORIENTDB_USER',
password: 'YOUR_ORIENTDB_PASSWORD',
database: 'YOUR_ORIENTDB_DB'
}
};