SqliteSchemaNormalizer
Rewrites a desired schema into the column types SQLite actually stores so the integrity verifier compares like with like (for example UUID is stored as TEXT). Implements [MIG-VERIFY-BEFORE-UP-TO-DATE].
public static class SqliteSchemaNormalizer
Methods
Normalize(SchemaDefinition)
public static Result<SchemaDefinition, MigrationError> Normalize(SchemaDefinition desired)
Map every desired column type to its SQLite round-trip type.
Parameters:
| Name | Type | Description |
|---|---|---|
desired |
SchemaDefinition |
The declared schema |
Returns: MigrationError>