Update docs
This commit is contained in:
parent
e82dc7a15a
commit
21d427e6d1
|
@ -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
|
||||
});
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue