fastiot.db.mariadb_schema_checks module

fastiot.db.mariadb_schema_checks.check_is_enum_represented(connection, sql_query, enum)[source]

Checks if enum values are in database table. The query must select a single column table with the enum values.

Raises:

SQLSchemaCheckError – raised if an enum is missing.