From 0fe43e1a8355262e09c72829d5b68bb64223fb16 Mon Sep 17 00:00:00 2001 From: Jonny Stoten Date: Mon, 19 Oct 2015 20:49:57 +0100 Subject: [PATCH] Add test code for additions --- knex/knex-test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/knex/knex-test.ts b/knex/knex-test.ts index 081f98867d..5e5c64428d 100644 --- a/knex/knex-test.ts +++ b/knex/knex-test.ts @@ -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); + } } });