Module database

Source
Expand description

Database Integration - Service providers for database connectivity

Provides service providers for PostgreSQL connection pooling and ORM integration with the DI container system.

Structs§

DatabaseServiceProvider
Database service provider for PostgreSQL connection pool
ManagedPool
Managed connection pool wrapper with statistics and health monitoring
PoolConfig
Connection pool configuration
PoolHealthReport
Detailed pool health report
PoolRegistry
Database pool registry for DI container integration
PoolStats
Connection pool statistics

Enums§

PoolError
Database connection pool error types

Functions§

create_custom_pool_registry
Create a pool registry with custom configuration
create_database_pool
Helper function to create a database pool directly with default configuration
create_database_pool_with_config
Helper function to create a database pool with custom configuration
create_default_pool_registry
Create a pool registry with a default database pool
get_database_pool
Helper function to get database pool from container (for future implementation)
get_named_database_pool
Helper function to get custom named database pool from container (for future implementation)