-
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 )
|
Parameters data Object Data to analyze. schema Object Schema definition. |
Returns : Object Converted data. |
Load data into the database |
.loadData( data , schema , transaction )
|
Parameters data Object Data to load. schema Object Schema definition. [ transaction ] Transaction Knex.js transaction. |
Returns : Promise
|
Convert and load the data in one method call |
.convertAndLoad( data , schema , transaction )
|
Parameters data Object Data to load. schema Object Schema definition. [ transaction ] Transaction Knex.js transaction. |
Returns : Promise
|
Documentation generated by documentary.js
knex-schemer