knex/lib/dialects/mysql/seeder.js
2014-09-01 17:19:34 +02:00

19 lines
446 B
JavaScript

'use strict';
module.exports = function(client) {
var Seeder = require('../../seed');
var inherits = require('inherits');
// Inherit from the `Seeder` constructor's prototype,
// so we can add the correct `then` method.
function Seeder_MySQL() {
this.client = client;
Seeder.apply(this, arguments);
}
inherits(Seeder_MySQL, Seeder);
// Assign the newly extended `Seeder` constructor to the client object.
client.Seeder = Seeder_MySQL;
};