Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema layer improvements #12

Open
btrask opened this issue Mar 26, 2015 · 1 comment
Open

Schema layer improvements #12

btrask opened this issue Mar 26, 2015 · 1 comment

Comments

@btrask
Copy link
Owner

btrask commented Mar 26, 2015

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).

@btrask
Copy link
Owner Author

btrask commented Aug 23, 2015

Considering using the varint format from SQLite4: https://www.sqlite.org/src4/doc/trunk/www/varint.wiki

Our current varint format can only pack values 0-15 into one byte. This hits us on every key's table ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant