From 21d427e6d1e8650154b33ca16f3808593d91922d Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Thu, 22 Aug 2013 12:20:07 -0700 Subject: [PATCH] Update docs --- README.md | 4 ++-- docs/datasource-connector.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eaea2499..4d7a1974 100644 --- a/README.md +++ b/README.md @@ -105,10 +105,10 @@ For example, var oracleConnector = require('loopback-connector-oracle'); var ds = new DataSource(oracleConnector, { - host : '166.78.158.45', + host : '127.0.0.1', database : 'XE', username : 'strongloop', - password : 'str0ng100pjs', + password : 'password', debug : true }); diff --git a/docs/datasource-connector.md b/docs/datasource-connector.md index 6bd7ab21..29f7c6df 100644 --- a/docs/datasource-connector.md +++ b/docs/datasource-connector.md @@ -98,6 +98,7 @@ when dataSource emit 'connected' event. To disconnect from database server call `dataSource.disconnect` method. This call forwarded to connector if connector have ability to connect/disconnect. +### Discovering model definitions from the database ### Synchronizing model definitions and database tables @@ -114,6 +115,7 @@ and a `callback` argument, which receive boolean value depending on db state: - false if db structure outdated - true when dataSource and db is in sync + dataSource.isActual(models, function(err, actual) { if (!actual) { dataSource.autoupdate(models, function(err, result) {