Returns the resolved mssql config used by the active connection pool, or
undefined if MSSQLConnection has not been called yet. Use this
when you need to read connection details (server, port, instance,
database) for logging or diagnostics.
Always call MSSQLConnection before relying on this accessor in
the same code path — the config is populated as a side effect of opening
the pool. (await MSSQLConnection() followed by getSqlConfig() is
guaranteed to return the live config.)
Returns the resolved mssql config used by the active connection pool, or
undefinedif MSSQLConnection has not been called yet. Use this when you need to read connection details (server, port, instance, database) for logging or diagnostics.Always call MSSQLConnection before relying on this accessor in the same code path — the config is populated as a side effect of opening the pool. (
await MSSQLConnection()followed bygetSqlConfig()is guaranteed to return the live config.)