skytracker.storage.table_manager.TableManager#

class skytracker.storage.table_manager.TableManager(database: DatabaseManager, cache: Cache[EntryType] | None = None)#

Bases: Generic[EntryType]

Abstract table manager

Methods

__init__

Initialize table manager with database manager and optional cache

ensure_exists

Function which ensures the table being managed exists, creating it if not

__init__(database: DatabaseManager, cache: Cache[EntryType] | None = None) None#

Initialize table manager with database manager and optional cache

Parameters:
  • database (DatabaseManager) – ClickHouse database manager

  • cache (Cache[EntryType], optional) – cache for quick access. Default is None.

abstractmethod async ensure_exists() None#

Function which ensures the table being managed exists, creating it if not