From e82dc7a15a6a2a2d68facf99e80999ef300b5a71 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Tue, 20 Aug 2013 17:06:36 -0700 Subject: [PATCH] Update header levels --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f690a1f9..eaea2499 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ LoopBack DataSource Juggler consists of the following components: ![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 arguments: @@ -51,7 +51,7 @@ Examples of model definition: tableName: 'users' }); -### DataSource +## DataSource DataSource is a factory for model classes. DataSource connected with specific database or other 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 different databases. -#### Creating dataSource +### Creating dataSource `DataSource` constructor available on `loopback-datasource-juggler` module: @@ -72,7 +72,7 @@ connector name or connector package: var dataSourceByConnectorName = new DataSource('memory'); var dataSourceByConnectorModule = new DataSource(require('redis')); -#### Settings +### Settings Second argument is optional settings. Settings object format and defaults depends on specific connector, but common fields are: