dbprocessing.tables

Table definitions for dbprocessing.

Contains definitions for all database tables, keyed by table name and suitable for passing as arguments to the Table constructor.

Functions

definition(name)

Get definition of a table

Attributes

dbprocessing.tables.definition(name)[source]

Get definition of a table

Parameters
namestr

Name of the table to get definition for, see names.

Returns
tuple

Arguments for Table constructor, such that it can be called Table(name, metadata, *dbprocessing.tables.definition[name])

Raises
ValueError

if the name is not recognized

dbprocessing.tables.names = ['mission', 'satellite', 'instrument', 'product', 'instrumentproductlink', 'process', 'productprocesslink', 'file', 'unixtime', 'filefilelink', 'code', 'processqueue', 'filecodelink', 'release', 'logging', 'logging_file', 'inspector']

Names of tables, in order they should be created (as a table should be defined before it’s linked to), although a table does not necessarily depend on all tables coming before it in this list.


Release: 0.1.0 Doc generation date: Feb 10, 2022