lsst.dax.apdb g9290983e33+d2d81de7f7
 
Loading...
Searching...
No Matches
lsst.dax.apdb.legacy_config.ApdbConfig Class Reference
Inheritance diagram for lsst.dax.apdb.legacy_config.ApdbConfig:

Public Member Functions

NewApdbConfig to_model (self)
 
ApdbConfig legacy_load (cls, bytes config)
 

Static Public Attributes

 read_sources_months = Field[int](doc="Number of months of history to read from DiaSource", default=12)
 
 read_forced_sources_months
 
 schema_file
 
 schema_name = Field[str](doc="Name of the schema in YAML configuration file.", default="ApdbSchema")
 
 extra_schema_file
 
 use_insert_id
 
 replica_chunk_seconds
 

Detailed Description

Part of Apdb configuration common to all implementations.

Member Function Documentation

◆ legacy_load()

ApdbConfig lsst.dax.apdb.legacy_config.ApdbConfig.legacy_load ( cls,
bytes config )
Load legacy configuration from pex_config configuration file.

Parameters
----------
config : `bytes`
    Configuration data.

Returns
-------
config : `ApdbConfig`
    Legacy configuration instance.

◆ to_model()

NewApdbConfig lsst.dax.apdb.legacy_config.ApdbConfig.to_model ( self)
Convert pex_config configuration to a new pydantic model.

Member Data Documentation

◆ extra_schema_file

lsst.dax.apdb.legacy_config.ApdbConfig.extra_schema_file
static
Initial value:
= Field[str](
doc=(
"Location of (YAML) configuration file with extra schema, "
"definitions in this file are merged with the definitions in "
"'schema_file', extending or replacing parts of the schema."
),
default=None,
optional=True,
deprecated="This field is deprecated, its value is not used.",
)

◆ read_forced_sources_months

lsst.dax.apdb.legacy_config.ApdbConfig.read_forced_sources_months
static
Initial value:
= Field[int](
doc="Number of months of history to read from DiaForcedSource", default=12
)

◆ replica_chunk_seconds

lsst.dax.apdb.legacy_config.ApdbConfig.replica_chunk_seconds
static
Initial value:
= Field[int](
default=600,
doc="Time extent for replica chunks, new chunks are created every specified number of seconds.",
)

◆ schema_file

lsst.dax.apdb.legacy_config.ApdbConfig.schema_file
static
Initial value:
= Field[str](
doc="Location of (YAML) configuration file with standard schema", default=_data_file_name("apdb.yaml")
)

◆ use_insert_id

lsst.dax.apdb.legacy_config.ApdbConfig.use_insert_id
static
Initial value:
= Field[bool](
doc=(
"If True, make and fill additional tables used for replication. "
"Databases created with earlier versions of APDB may not have these tables, "
"and corresponding methods will not work for them."
),
default=False,
)

The documentation for this class was generated from the following file: