ReadonlyDialectThe SQL dialect for this connection's platform. Exposes identifier quoting,
timestamp expressions, etc. — used by callers (e.g. validator-function
emission in EntitySubClassGeneratorBase) that need to author dialect-aware
SQL but don't have access to a CodeGenDatabaseProvider instance.
Begins a new database transaction.
A CodeGenTransaction handle for executing queries within the transaction.
Executes a stored procedure (SQL Server) or function call (PostgreSQL).
The fully qualified routine name (e.g., "[dbo].[spCreateEntity]").
Named parameters for the routine.
The query result with a recordset array.
Executes a SQL query without parameters.
The SQL statement to execute.
The query result with a recordset array.
Executes a SQL query with named parameters. Parameters are passed as key-value pairs and the implementation is responsible for binding them safely (e.g.,
The SQL statement with parameter placeholders.
Named parameters as key-value pairs.
The query result with a recordset array.
Database-agnostic connection interface for CodeGen operations.
This interface abstracts the underlying database driver (mssql.ConnectionPool, pg.Pool, etc.) so that the orchestration code in SQLCodeGenBase, ManageMetadataBase, and related classes can work with any supported database platform.
Usage Patterns
Simple query (no parameters):
Parameterized query (safe from SQL injection):
Stored procedure / function call:
Transaction:
Implementations
SQLServerCodeGenConnectionwrapsmssql.ConnectionPool(in CodeGenLib)PostgreSQLCodeGenConnectionwrapspg.Pool(in PostgreSQLDataProvider)