-
Notifications
You must be signed in to change notification settings - Fork 2
Register table and index schema with schema manager #30
Comments
I do understand the problem but I would need some more information to come up with some concrete ideas. How would the ideal workflow be for the client? Let's use as example: get a list of proposals?
I am a bit biased by what we had build for weave. There you would get a list of proposals by querying "/proposals" which is the bucket name. |
So I think it would help for me to write up a schema for this schema manager which would basically be a |
So how about something like this as a starting point: message StoreSchema {
string prefix = 1;
string name = 2;
oneof schema {
TableSchema table = 3;
}
}
message TableSchema {
string model_type = 1; // the protobuf type name of the model type
repeated string primary_key_columns = 2;
} maybe with |
Motivation
The merkle store of chains is exposed directly to clients for querying and ideally they can use it for generating merkle proofs. This is only useful if clients actually understand the format of the merkle store. With the ORM package, we have a formal way for organizing the merkle store. With a proper "schema manager" that tracks or even better assigns table and index prefixes to table and index types, a store introspection API could be exposed to clients.
Definition of Done
The "schema manager" should:
Thoughts @alpe?
The text was updated successfully, but these errors were encountered: