Classes | |
| class | _StatisticsMeta |
| class | _StatisticsShortTerm |
| class | Base |
| class | EventData |
| class | Events |
| class | EventTypes |
| class | FAST_PYSQLITE_DATETIME |
| class | JSONLiteral |
| class | LegacyBase |
| class | LegacyStatisticsMeta |
| class | LegacyStatisticsShortTerm |
| class | MigrationChanges |
| class | NativeLargeBinary |
| class | RecorderRuns |
| class | SchemaChanges |
| class | StateAttributes |
| class | States |
| class | StatesMeta |
| class | Statistics |
| class | StatisticsBase |
| class | StatisticsMeta |
| class | StatisticsRuns |
| class | StatisticsShortTerm |
| class | Unused |
| class | UnusedDateTime |
Functions | |
| str | compile_char_one (TypeDecorator type_, Any compiler, **Any kw) |
| str | compile_char_zero (TypeDecorator type_, Any compiler, **Any kw) |
Models for SQLAlchemy.
| str homeassistant.components.recorder.db_schema.compile_char_one | ( | TypeDecorator | type_, |
| Any | compiler, | ||
| **Any | kw | ||
| ) |
Compile Unused as CHAR(1) on postgresql.
Definition at line 173 of file db_schema.py.
| str homeassistant.components.recorder.db_schema.compile_char_zero | ( | TypeDecorator | type_, |
| Any | compiler, | ||
| **Any | kw | ||
| ) |
Compile UnusedDateTime and Unused as CHAR(0) on mysql, mariadb, and sqlite.
Definition at line 167 of file db_schema.py.
|
private |
Definition at line 140 of file db_schema.py.
|
private |
Definition at line 82 of file db_schema.py.
|
private |
Definition at line 149 of file db_schema.py.
| list homeassistant.components.recorder.db_schema.ALL_TABLES |
Definition at line 105 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.BIG_INTEGER_SQL = "BIGINT" |
Definition at line 227 of file db_schema.py.
| homeassistant.components.recorder.db_schema.ColumnElement |
Definition at line 920 of file db_schema.py.
| homeassistant.components.recorder.db_schema.CONTEXT_BINARY_TYPE |
Definition at line 228 of file db_schema.py.
| int homeassistant.components.recorder.db_schema.CONTEXT_ID_BIN_MAX_LENGTH = 16 |
Definition at line 134 of file db_schema.py.
| tuple homeassistant.components.recorder.db_schema.DATETIME_TYPE |
Definition at line 212 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.DOUBLE_PRECISION_TYPE_SQL = "DOUBLE PRECISION" |
Definition at line 226 of file db_schema.py.
| tuple homeassistant.components.recorder.db_schema.DOUBLE_TYPE |
Definition at line 217 of file db_schema.py.
| homeassistant.components.recorder.db_schema.EVENT_DATA_JSON |
Definition at line 906 of file db_schema.py.
| list homeassistant.components.recorder.db_schema.EVENT_ORIGIN_ORDER = [EventOrigin.local, EventOrigin.remote] |
Definition at line 248 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.EVENTS_CONTEXT_ID_BIN_INDEX = "ix_events_context_id_bin" |
Definition at line 130 of file db_schema.py.
| homeassistant.components.recorder.db_schema.ID_TYPE = BigInteger().with_variant(sqlite.INTEGER, "sqlite") |
Definition at line 196 of file db_schema.py.
| homeassistant.components.recorder.db_schema.JSON_VARIANT_CAST |
Definition at line 204 of file db_schema.py.
| homeassistant.components.recorder.db_schema.JSONB_VARIANT_CAST |
Definition at line 208 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.LAST_UPDATED_INDEX_TS = "ix_states_last_updated_ts" |
Definition at line 128 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.LEGACY_STATES_ENTITY_ID_LAST_UPDATED_INDEX = "ix_states_entity_id_last_updated_ts" |
Definition at line 133 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.LEGACY_STATES_EVENT_ID_INDEX = "ix_states_event_id" |
Definition at line 132 of file db_schema.py.
| int homeassistant.components.recorder.db_schema.MAX_EVENT_DATA_BYTES = 32768 |
Definition at line 101 of file db_schema.py.
| int homeassistant.components.recorder.db_schema.MAX_STATE_ATTRS_BYTES = 16384 |
Definition at line 100 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.METADATA_ID_LAST_UPDATED_INDEX_TS = "ix_states_metadata_id_last_updated_ts" |
Definition at line 129 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.MYSQL_COLLATE = "utf8mb4_unicode_ci" |
Definition at line 136 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.MYSQL_DEFAULT_CHARSET = "utf8mb4" |
Definition at line 137 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.MYSQL_ENGINE = "InnoDB" |
Definition at line 138 of file db_schema.py.
| homeassistant.components.recorder.db_schema.OLD_FORMAT_ATTRS_JSON |
Definition at line 916 of file db_schema.py.
| homeassistant.components.recorder.db_schema.OLD_FORMAT_EVENT_DATA_JSON |
Definition at line 909 of file db_schema.py.
| homeassistant.components.recorder.db_schema.OLD_STATE = aliased(States, name="old_state") |
Definition at line 923 of file db_schema.py.
| homeassistant.components.recorder.db_schema.PSQL_DIALECT = SupportedDialect.POSTGRESQL |
Definition at line 103 of file db_schema.py.
| int homeassistant.components.recorder.db_schema.SCHEMA_VERSION = 47 |
Definition at line 80 of file db_schema.py.
| homeassistant.components.recorder.db_schema.SHARED_ATTR_OR_LEGACY_ATTRIBUTES |
Definition at line 925 of file db_schema.py.
| homeassistant.components.recorder.db_schema.SHARED_ATTRS_JSON |
Definition at line 913 of file db_schema.py.
| homeassistant.components.recorder.db_schema.SHARED_DATA_OR_LEGACY_EVENT_DATA |
Definition at line 929 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.STATES_CONTEXT_ID_BIN_INDEX = "ix_states_context_id_bin" |
Definition at line 131 of file db_schema.py.
| tuple homeassistant.components.recorder.db_schema.STATISTICS_TABLES = ("statistics", "statistics_short_term") |
Definition at line 98 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_EVENT_DATA = "event_data" |
Definition at line 85 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_EVENT_TYPES = "event_types" |
Definition at line 86 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_EVENTS = "events" |
Definition at line 84 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_MIGRATION_CHANGES = "migration_changes" |
Definition at line 96 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_RECORDER_RUNS = "recorder_runs" |
Definition at line 90 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_SCHEMA_CHANGES = "schema_changes" |
Definition at line 91 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_STATE_ATTRIBUTES = "state_attributes" |
Definition at line 88 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_STATES = "states" |
Definition at line 87 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_STATES_META = "states_meta" |
Definition at line 89 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_STATISTICS = "statistics" |
Definition at line 92 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_STATISTICS_META = "statistics_meta" |
Definition at line 93 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_STATISTICS_RUNS = "statistics_runs" |
Definition at line 94 of file db_schema.py.
| string homeassistant.components.recorder.db_schema.TABLE_STATISTICS_SHORT_TERM = "statistics_short_term" |
Definition at line 95 of file db_schema.py.
| list homeassistant.components.recorder.db_schema.TABLES_TO_CHECK |
Definition at line 121 of file db_schema.py.
| tuple homeassistant.components.recorder.db_schema.TIMESTAMP_TYPE = DOUBLE_TYPE |
Definition at line 232 of file db_schema.py.
| homeassistant.components.recorder.db_schema.UINT_32_TYPE |
Definition at line 199 of file db_schema.py.
| homeassistant.components.recorder.db_schema.UNUSED_LEGACY_COLUMN = Unused(0) |
Definition at line 223 of file db_schema.py.
| homeassistant.components.recorder.db_schema.UNUSED_LEGACY_DATETIME_COLUMN = UnusedDateTime(timezone=True) |
Definition at line 224 of file db_schema.py.
| homeassistant.components.recorder.db_schema.UNUSED_LEGACY_INTEGER_COLUMN = SmallInteger() |
Definition at line 225 of file db_schema.py.