withPool static method
Wraps a borrowed MssqlConnectionPool the caller owns.
Every single-statement read and write takes a lease and gives it back. The pool itself is kept, not just its convenience session, because transaction needs a connection it can hold for the whole callback — a session that hands out a different lease per statement cannot open one.
Implementation
static MssqlUntypedDatabase withPool(MssqlConnectionPool pool) =>
MssqlUntypedDatabase(pool.session, pool: pool);