mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
Add test code for additions
This commit is contained in:
@@ -12,6 +12,7 @@ var knex = Knex({
|
||||
});
|
||||
|
||||
var knex = Knex({
|
||||
debug: true,
|
||||
client: 'mysql',
|
||||
connection: {
|
||||
socketPath : '/path/to/socket.sock',
|
||||
@@ -32,7 +33,13 @@ var knex = Knex({
|
||||
},
|
||||
pool: {
|
||||
min: 0,
|
||||
max: 7
|
||||
max: 7,
|
||||
afterCreate: (connection, callback) => {
|
||||
return callback(null, connection);
|
||||
},
|
||||
beforeDestroy: (connection, callback) => {
|
||||
return callback(null, connection);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user