Model Variable

class toardb.variables.models.Variable(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api._DynamicAttributesType, sqlalchemy.inspection.Inspectable[sqlalchemy.orm.mapper.Mapper[Any]]

Table “public.variables”

Column

Type

Collation

Nullable

Default

id

integer

not null

nextval(‘variables_id_seq’::regclass)

name

character varying(32)

not null

longname

character varying(128)

not null

displayname

character varying(128)

not null

cf_standardname

character varying(128)

not null

units

character varying(64)

not null

chemical_formula

character varying(128)

not null

Indexes:

“variables_pkey” PRIMARY KEY, btree (id) “variables_name_key” UNIQUE CONSTRAINT, btree (name) “variables_name_9bc98a13_like” btree (name varchar_pattern_ops)

Referenced by:

TABLE “timeseries” CONSTRAINT “timeseries_variable_id_dd9603f5_fk_variables_id” FOREIGN KEY (variable_id) REFERENCES variables(id) DEFERRABLE INITIALLY DEFERRED

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

id
name
longname
displayname
cf_standardname
units
chemical_formula
timeseries
metadata: MetaData = MetaData()
registry: RegistryType = <sqlalchemy.orm.decl_api.registry object>