Coverage report: 88%

Files Functions Classes

coverage.py v7.13.4, created at 2026-02-14 15:28 -0500

File function   statements missing excluded   coverage
src / sql_tool / __init__.py (no function)   2 0 0   100%
src / sql_tool / __main__.py (no function)   1 1 2   0%
src / sql_tool / cli / __init__.py (no function)   0 0 0   100%
src / sql_tool / cli / commands / __init__.py (no function)   0 0 0   100%
src / sql_tool / cli / commands / _shared.py get_client   11 0 0   100%
src / sql_tool / cli / commands / _shared.py format_options   2 0 0   100%
src / sql_tool / cli / commands / _shared.py output_result   3 0 0   100%
src / sql_tool / cli / commands / _shared.py apply_local_format_options   12 4 0   67%
src / sql_tool / cli / commands / _shared.py is_table_format   2 0 0   100%
src / sql_tool / cli / commands / _shared.py size_formatter   3 0 0   100%
src / sql_tool / cli / commands / _shared.py parse_table_arg   4 1 0   75%
src / sql_tool / cli / commands / _shared.py preprocess_optional_int_flags   13 0 0   100%
src / sql_tool / cli / commands / _shared.py (no function)   19 3 0   84%
src / sql_tool / cli / commands / config.py config_callback   3 2 0   33%
src / sql_tool / cli / commands / config.py _get_resolved_config   4 0 0   100%
src / sql_tool / cli / commands / config.py _mask_password   3 0 0   100%
src / sql_tool / cli / commands / config.py config_show   20 0 0   100%
src / sql_tool / cli / commands / config.py config_profiles   23 0 0   100%
src / sql_tool / cli / commands / config.py (no function)   16 2 0   88%
src / sql_tool / cli / commands / query.py query_command   4 0 0   100%
src / sql_tool / cli / commands / query.py (no function)   8 0 0   100%
src / sql_tool / cli / commands / service.py service_callback   3 2 0   33%
src / sql_tool / cli / commands / service.py vacuum_command   7 4 0   43%
src / sql_tool / cli / commands / service.py kill_command   7 7 0   0%
src / sql_tool / cli / commands / service.py check_command   3 0 0   100%
src / sql_tool / cli / commands / service.py (no function)   14 0 0   100%
src / sql_tool / cli / commands / ts.py ts_callback   5 3 0   40%
src / sql_tool / cli / commands / ts.py hypertables_command   25 0 0   100%
src / sql_tool / cli / commands / ts.py chunks_command   26 3 0   88%
src / sql_tool / cli / commands / ts.py compression_command   11 0 0   100%
src / sql_tool / cli / commands / ts.py caggs_command   5 0 0   100%
src / sql_tool / cli / commands / ts.py retention_command   5 0 0   100%
src / sql_tool / cli / commands / ts.py refresh_status_command   5 0 0   100%
src / sql_tool / cli / commands / ts.py jobs_command   13 0 0   100%
src / sql_tool / cli / commands / ts.py _jobs_history_output   10 0 0   100%
src / sql_tool / cli / commands / ts.py compression_settings_command   15 0 0   100%
src / sql_tool / cli / commands / ts.py compression_set_command   52 52 0   0%
src / sql_tool / cli / commands / ts.py recompress_command   17 17 0   0%
src / sql_tool / cli / commands / ts.py compress_command   8 0 0   100%
src / sql_tool / cli / commands / ts.py _compress_specific_chunk   15 3 0   80%
src / sql_tool / cli / commands / ts.py _compress_all_uncompressed   12 0 0   100%
src / sql_tool / cli / commands / ts.py (no function)   36 0 0   100%
src / sql_tool / cli / helpers.py normalize_pg_interval   25 0 0   100%
src / sql_tool / cli / helpers.py format_duration_human   12 0 0   100%
src / sql_tool / cli / helpers.py format_relative_time   3 0 0   100%
src / sql_tool / cli / helpers.py fmt_size   8 0 0   100%
src / sql_tool / cli / helpers.py format_size_compact   10 0 0   100%
src / sql_tool / cli / helpers.py format_size_gb   7 0 0   100%
src / sql_tool / cli / helpers.py format_timestamp   7 0 0   100%
src / sql_tool / cli / helpers.py (no function)   9 0 0   100%
src / sql_tool / cli / main.py version_callback   3 0 0   100%
src / sql_tool / cli / main.py main   22 0 0   100%
src / sql_tool / cli / main.py main.cleanup   2 2 0   0%
src / sql_tool / cli / main.py run   15 0 0   100%
src / sql_tool / cli / main.py test_sentry   14 0 0   100%
src / sql_tool / cli / main.py databases_command   9 0 0   100%
src / sql_tool / cli / main.py _schemas_all_databases   19 3 0   84%
src / sql_tool / cli / main.py _schemas_all_databases.make_client   2 0 0   100%
src / sql_tool / cli / main.py schema_command   39 7 0   82%
src / sql_tool / cli / main.py _table_list   43 1 0   98%
src / sql_tool / cli / main.py _table_list._ratio   3 0 0   100%
src / sql_tool / cli / main.py table_command   27 6 0   78%
src / sql_tool / cli / main.py connections_command   19 1 0   95%
src / sql_tool / cli / main.py (no function)   43 1 0   98%
src / sql_tool / cli / output.py detect_tty   1 0 0   100%
src / sql_tool / cli / output.py resolve_format   3 0 0   100%
src / sql_tool / cli / output.py get_formatter   13 0 0   100%
src / sql_tool / cli / output.py write_output   2 0 0   100%
src / sql_tool / cli / output.py (no function)   14 1 0   93%
src / sql_tool / core / __init__.py (no function)   0 0 0   100%
src / sql_tool / core / client.py PgClient.__init__   2 0 0   100%
src / sql_tool / core / client.py PgClient.__enter__   1 0 0   100%
src / sql_tool / core / client.py PgClient.__exit__   1 0 0   100%
src / sql_tool / core / client.py PgClient._connect   8 0 0   100%
src / sql_tool / core / client.py PgClient.execute_query   20 1 0   95%
src / sql_tool / core / client.py PgClient.close   3 0 0   100%
src / sql_tool / core / client.py (no function)   18 1 0   94%
src / sql_tool / core / config.py parse_dsn   23 0 0   100%
src / sql_tool / core / config.py PgProfile.parse_dsn_into_components   6 0 0   100%
src / sql_tool / core / config.py PgProfile.validate_sslmode   5 0 0   100%
src / sql_tool / core / config.py PgProfile.validate_port   4 0 0   100%
src / sql_tool / core / config.py PgProfile.connection_url   6 0 0   100%
src / sql_tool / core / config.py load_config   15 0 0   100%
src / sql_tool / core / config.py resolve_config   56 0 0   100%
src / sql_tool / core / config.py (no function)   56 0 0   100%
src / sql_tool / core / exceptions.py SqlToolError.__init__   2 0 0   100%
src / sql_tool / core / exceptions.py (no function)   12 0 0   100%
src / sql_tool / core / exit_codes.py (no function)   10 0 0   100%
src / sql_tool / core / logging.py setup_logging   2 0 0   100%
src / sql_tool / core / logging.py get_logger   4 0 0   100%
src / sql_tool / core / logging.py (no function)   7 0 0   100%
src / sql_tool / core / models.py (no function)   13 0 0   100%
src / sql_tool / core / monitoring.py setup_sentry   1 0 0   100%
src / sql_tool / core / monitoring.py (no function)   4 0 0   100%
src / sql_tool / core / postgres.py check_server   7 0 0   100%
src / sql_tool / core / postgres.py list_user_tables   3 0 0   100%
src / sql_tool / core / postgres.py vacuum_tables   4 0 0   100%
src / sql_tool / core / postgres.py kill_backend   5 0 0   100%
src / sql_tool / core / postgres.py list_databases   2 0 0   100%
src / sql_tool / core / postgres.py list_all_database_names   3 0 0   100%
src / sql_tool / core / postgres.py _query_chunk_map   8 0 0   100%
src / sql_tool / core / postgres.py list_schemas   3 0 0   100%
src / sql_tool / core / postgres.py list_schemas_all_databases   14 0 0   100%
src / sql_tool / core / postgres.py list_tables   20 3 0   85%
src / sql_tool / core / postgres.py describe_table   2 0 0   100%
src / sql_tool / core / postgres.py get_time_column   8 2 0   75%
src / sql_tool / core / postgres.py get_timestamp_range   2 0 0   100%
src / sql_tool / core / postgres.py preview_table   15 1 0   93%
src / sql_tool / core / postgres.py list_connections   18 0 0   100%
src / sql_tool / core / postgres.py connections_summary   11 0 0   100%
src / sql_tool / core / postgres.py (no function)   24 2 0   92%
src / sql_tool / core / query_source.py resolve_query_source   12 0 0   100%
src / sql_tool / core / query_source.py (no function)   5 0 0   100%
src / sql_tool / core / timescaledb.py check_timescaledb_available   4 1 0   75%
src / sql_tool / core / timescaledb.py list_hypertables   7 0 0   100%
src / sql_tool / core / timescaledb.py list_chunks   2 0 0   100%
src / sql_tool / core / timescaledb.py compression_stats   7 0 0   100%
src / sql_tool / core / timescaledb.py list_continuous_aggregates   2 0 0   100%
src / sql_tool / core / timescaledb.py list_retention_policies   2 0 0   100%
src / sql_tool / core / timescaledb.py list_refresh_status   2 0 0   100%
src / sql_tool / core / timescaledb.py list_jobs   2 0 0   100%
src / sql_tool / core / timescaledb.py list_job_history   9 3 0   67%
src / sql_tool / core / timescaledb.py list_compression_settings   17 0 0   100%
src / sql_tool / core / timescaledb.py alter_compression_settings   7 7 0   0%
src / sql_tool / core / timescaledb.py set_compression_enabled   3 3 0   0%
src / sql_tool / core / timescaledb.py add_compression_policy   7 7 0   0%
src / sql_tool / core / timescaledb.py remove_compression_policy   2 2 0   0%
src / sql_tool / core / timescaledb.py set_chunk_time_interval   2 2 0   0%
src / sql_tool / core / timescaledb.py count_compressed_chunks   3 0 0   100%
src / sql_tool / core / timescaledb.py list_compressed_chunk_names   3 0 0   100%
src / sql_tool / core / timescaledb.py recompress_chunk   3 3 0   0%
src / sql_tool / core / timescaledb.py list_chunk_info   3 0 0   100%
src / sql_tool / core / timescaledb.py compress_single_chunk   2 2 0   0%
src / sql_tool / core / timescaledb.py parse_chunk_id   7 0 0   100%
src / sql_tool / core / timescaledb.py (no function)   28 2 0   93%
src / sql_tool / formatters / __init__.py (no function)   4 0 0   100%
src / sql_tool / formatters / base.py Formatter.format   0 0 2   100%
src / sql_tool / formatters / base.py FormatterRegistry.__init__   1 0 0   100%
src / sql_tool / formatters / base.py FormatterRegistry.register   1 0 0   100%
src / sql_tool / formatters / base.py FormatterRegistry.get   5 0 0   100%
src / sql_tool / formatters / base.py FormatterRegistry.available   1 0 0   100%
src / sql_tool / formatters / base.py (no function)   12 2 11   83%
src / sql_tool / formatters / csv.py _write_row   4 0 0   100%
src / sql_tool / formatters / csv.py CSVFormatter.__init__   1 0 0   100%
src / sql_tool / formatters / csv.py CSVFormatter.format   4 0 0   100%
src / sql_tool / formatters / csv.py (no function)   13 2 0   85%
src / sql_tool / formatters / json.py _serialize_value   3 0 0   100%
src / sql_tool / formatters / json.py JSONFormatter.__init__   1 0 0   100%
src / sql_tool / formatters / json.py JSONFormatter.format   4 0 0   100%
src / sql_tool / formatters / json.py (no function)   12 2 0   83%
src / sql_tool / formatters / table.py _truncate   3 0 0   100%
src / sql_tool / formatters / table.py TableFormatter.__init__   1 0 0   100%
src / sql_tool / formatters / table.py TableFormatter.format   13 0 0   100%
src / sql_tool / formatters / table.py (no function)   16 2 0   88%
Total     1489 176 15   88%

No items found using the specified filter.