Ever wondered exactly *what* was in a Drizzle Table proto? Well, wonder no more. A while back this little utility called table_raw_reader hit the drizzle codebase. It’s a simple command line utility that takes a .proto file as an argument, reads it off disk and then prints out a text representation using the TextFormat class of the protobuf library.
An example:
stewart@willster:~/drizzle/jay-and-stewart-remove-pack_flag$ ./drizzled/message/table_raw_reader ./tests/var/master-data/test/t1.dfe
name: "t1"
engine {
name: "InnoDB"
}
field {
name: "id"
type: INTEGER
format: DefaultFormat
options {
length: 11
}
}
field {
name: "padding"
type: VARCHAR
format: DefaultFormat
options {
length: 800
}
string_options { …[Read more]