-
Notifications
You must be signed in to change notification settings - Fork 1
API
Branden Horiuchi edited this page Sep 19, 2015
·
3 revisions
| Attempt to convert data to be compatible with the schema definition |
|
.convert( data, schema )
|
Parametersdata ObjectData to analyze. schema ObjectSchema definition. |
Returns: Object Converted data. |
| Load data into the database |
|
.loadData( data, schema, transaction )
|
Parametersdata ObjectData to load. schema ObjectSchema definition. [ transaction] TransactionKnex.js transaction. |
Returns: Promise
|
| Convert and load the data in one method call |
|
.convertAndLoad( data, schema, transaction )
|
Parametersdata ObjectData to load. schema ObjectSchema definition. [ transaction] TransactionKnex.js transaction. |
Returns: Promise
|
Documentation generated by documentary.js
knex-schemer