Gets or creates a SQL Server connection pool for database operations.
Uses singleton pattern to reuse the same connection pool across multiple
code generation operations for better performance.
The mssql config is built at first connection time so that
initializeConfig() has had a chance to populate configInfo from the
user's .env and mj.config.cjs. Building it at module load (the prior
behavior) captured stale empty values and triggered
"config.server property is required" at codegen time.
Returns Promise<ConnectionPool>
Promise resolving to the mssql ConnectionPool instance
Gets or creates a SQL Server connection pool for database operations. Uses singleton pattern to reuse the same connection pool across multiple code generation operations for better performance.
The mssql config is built at first connection time so that
initializeConfig()has had a chance to populateconfigInfofrom the user's.envandmj.config.cjs. Building it at module load (the prior behavior) captured stale empty values and triggered"config.server property is required"at codegen time.