Skip to main content

Module db

Module db 

Source

Functionsยง

extract_table_name
Extract the table name from a simple SQL query. Returns None for complex queries or when table cannot be determined.
instrumented_query
Execute a database operation with tracing instrumentation. This creates a span and records the duration as a metric.
record_pool_metrics
Record pool connection metrics from a PgPool.
record_query_duration
Record a query execution with its duration.