keyFor method

String keyFor(
  1. MssqlSession session
)

Host, port and current database — not the login catalog, and not a connection identity. Two leases of the same database share; a USE does not.

Implementation

String keyFor(MssqlSession session) {
  final config = session.config;
  return '${config.host}:${config.port}/${session.currentDatabase}';
}