calibpipe.database package#
Database utilities.
This sub-package contains general purpose utilities for database management, and also the specialization for LST. LST-related code is contained in the sub-packages starting with lst_, the rest is decoupled from it.
- Content:
-
General purpose connection (SQLConnection) using sqlalchemy and specialisation for a PostgreSQL+psycopg database.
General utilities to create and manipulate database objects (fields, columns, tables, and the hashable row information used for cache indexing, queries).
All containers and utilities to convert ctapipe containers to tables that fill the CalibPipe postgres database.
Subpackages#
- calibpipe.database.adapter package
Adapter- Subpackages
- calibpipe.database.adapter.database_containers package
TableVersionManagerContainerMap- Submodules
- calibpipe.database.adapter.database_containers.atmosphere module
- calibpipe.database.adapter.database_containers.common_metadata module
- calibpipe.database.adapter.database_containers.container_map module
- calibpipe.database.adapter.database_containers.observatory module
- calibpipe.database.adapter.database_containers.table_version_manager module
- calibpipe.database.adapter.database_containers.throughput module
- calibpipe.database.adapter.database_containers.version_control module
- calibpipe.database.adapter.database_containers package
- Submodules
- calibpipe.database.adapter.adapter module
- calibpipe.database.connections package
SQLConnectionget_user_confirmation()get_postgres_uri()CalibPipeDatabase- Submodules
- calibpipe.database.connections.calibpipe_database module
- calibpipe.database.connections.postgres_utils module
- calibpipe.database.connections.sql_connection module
- calibpipe.database.connections.user_confirmation module
- calibpipe.database.interfaces package
BooleanSmallIntegerIntegerBigIntegerFloatDoubleNumericStringDateTimeDateTimeNDArraySQLTableInfoSQLColumnInfoHashableRowDataTableHandlerTableHandler.get_database_table_insertion()TableHandler.insert_row_in_database()TableHandler.read_table_from_database()TableHandler.get_compatible_version()TableHandler.update_tables_info()TableHandler.update_version_table()TableHandler.update_table_name()TableHandler.prepare_db_tables()TableHandler.upload_data()
query_full_table()query_from_date()query_from_run()- Submodules
- calibpipe.database.interfaces.hashable_row_data module
- calibpipe.database.interfaces.queries module
- calibpipe.database.interfaces.sql_column_info module
- calibpipe.database.interfaces.sql_metadata module
- calibpipe.database.interfaces.sql_table_info module
- calibpipe.database.interfaces.table_handler module
TableHandlerTableHandler.get_database_table_insertion()TableHandler.insert_row_in_database()TableHandler.read_table_from_database()TableHandler.get_compatible_version()TableHandler.update_tables_info()TableHandler.update_version_table()TableHandler.update_table_name()TableHandler.prepare_db_tables()TableHandler.upload_data()
- calibpipe.database.interfaces.types module