/**
 * Copy of `acquireRawConnection` from knex codebase, but instead relies
 * on `getRuntimeConnectionSettings` vs `connectionSettings`
 */ export function acquireRawConnection ( ) { return new Promise ( ( resolver , rejecter ) => { const connection = this . driver . createConnection ( this . getRuntimeConnectionSettings ( ) ) ; connection . on ( 'error' , ( err ) => { connection . __knex__disposed = err ; } ) ; connection . connect ( ( err ) => { if ( err ) { connection . removeAllListeners ( ) ; return rejecter ( err ) ; } resolver ( connection ) ; } ) ; } ) ; }