db_schema_* API for verifying that the application schema matches the stored data. This should be separate from the database schema version that we store currently. It should be forward-compatible for changes that support it. We need to store column names and types. Types should be stored as strings for maximum extensibility.
It'd also be nice to have a blob/buffer type. With escaping instead of length-prefixing, that way we could handle truncated hash URIs easily (assuming we switch to hash normalization).
db_schema_*
API for verifying that the application schema matches the stored data. This should be separate from the database schema version that we store currently. It should be forward-compatible for changes that support it. We need to store column names and types. Types should be stored as strings for maximum extensibility.It'd also be nice to have a blob/buffer type. With escaping instead of length-prefixing, that way we could handle truncated hash URIs easily (assuming we switch to hash normalization).