Update header levels
This commit is contained in:
parent
94a9e8e9e7
commit
e82dc7a15a
|
@ -13,7 +13,7 @@ LoopBack DataSource Juggler consists of the following components:
|
||||||
|
|
||||||
![loopback-datasource-juggler-overview](overview.png "LoopBack Diagram")
|
![loopback-datasource-juggler-overview](overview.png "LoopBack Diagram")
|
||||||
|
|
||||||
### LoopBack Definition Language
|
## LoopBack Definition Language
|
||||||
|
|
||||||
To define model dataSource have single method `dataSource.define`. It accepts three
|
To define model dataSource have single method `dataSource.define`. It accepts three
|
||||||
arguments:
|
arguments:
|
||||||
|
@ -51,7 +51,7 @@ Examples of model definition:
|
||||||
tableName: 'users'
|
tableName: 'users'
|
||||||
});
|
});
|
||||||
|
|
||||||
### DataSource
|
## DataSource
|
||||||
|
|
||||||
DataSource is a factory for model classes. DataSource connected with specific database or other
|
DataSource is a factory for model classes. DataSource connected with specific database or other
|
||||||
backend system using connector.
|
backend system using connector.
|
||||||
|
@ -60,7 +60,7 @@ All model classes within single datasource shares same connector type and one da
|
||||||
connection. But it's possible to use more than one datasource to connect with
|
connection. But it's possible to use more than one datasource to connect with
|
||||||
different databases.
|
different databases.
|
||||||
|
|
||||||
#### Creating dataSource
|
### Creating dataSource
|
||||||
|
|
||||||
`DataSource` constructor available on `loopback-datasource-juggler` module:
|
`DataSource` constructor available on `loopback-datasource-juggler` module:
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ connector name or connector package:
|
||||||
var dataSourceByConnectorName = new DataSource('memory');
|
var dataSourceByConnectorName = new DataSource('memory');
|
||||||
var dataSourceByConnectorModule = new DataSource(require('redis'));
|
var dataSourceByConnectorModule = new DataSource(require('redis'));
|
||||||
|
|
||||||
#### Settings
|
### Settings
|
||||||
|
|
||||||
Second argument is optional settings. Settings object format and defaults
|
Second argument is optional settings. Settings object format and defaults
|
||||||
depends on specific connector, but common fields are:
|
depends on specific connector, but common fields are:
|
||||||
|
|
Loading…
Reference in New Issue