OptionalschemaInitialize the connection pool and connect to PostgreSQL
This instance for chaining
Create a new model class
Model name (table name)
Model schema definition
Model options
Model constructor
Close all connections and clean up
Get a connection from the pool
PostgreSQL client connection
Get an existing model by name
Model name
Model constructor
Expose the registry instance for advanced consumers
Get pool statistics
Return a map of registered models keyed by canonical name
Check if the DAL is connected
Run database migrations
Path to migration files
Execute a query with optional parameters
SQL query text
Query parameters
Optional client connection (for transactions)
Query result
Rollback the last migration (if supported)
Main Data Access Layer class for PostgreSQL
Provides connection management, transaction support, and model creation functionality. This class serves as the main interface between the application and the PostgreSQL database.