FieldMapping

database_builder.FieldMapping()

Represents a mapping of a database field to a list of allowed values.

Attributes

field_name : str

The name of the database field/column

values : list[str]

List of values that should match this field

Methods

Name Description
to_sql_filter Generate SQL filter string for this field mapping.

to_sql_filter

database_builder.FieldMapping.to_sql_filter()

Generate SQL filter string for this field mapping.

Returns

: str

SQL WHERE clause condition string for this field mapping.

Back to top