tessl install tessl/pypi-sqlmodel@0.0.0SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness.
Agent Success
Agent success rate when using this tile
85%
Improvement
Agent success rate improvement when using this tile compared to baseline
1x
Baseline
Agent success rate without this tile
85%
A module that configures and manages database connection pooling for optimal performance in production environments.
@generates
def create_production_engine(database_url: str):
"""
Creates a database engine with production-ready connection pool settings.
The engine should be configured with:
- Pool size of 10 connections
- Max overflow of 5 additional connections
- Pool timeout of 30 seconds
- Pre-ping enabled to verify connection health
Args:
database_url: Database connection string
Returns:
Database engine with production connection pool configuration
"""
pass
def create_test_engine(database_url: str):
"""
Creates a database engine with test-appropriate pool settings.
The engine should use a single static connection suitable for testing.
Args:
database_url: Database connection string
Returns:
Database engine with single connection for testing
"""
passProvides database engine creation and connection pooling functionality.
@satisfied-by