mirror of
https://github.com/knex/knex.git
synced 2025-07-16 21:40:56 +00:00
17 lines
431 B
JavaScript
17 lines
431 B
JavaScript
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;
|
|
|
|
}; |