3 ms·
What does a query look like when you print it (to help with diagnostics and debugging)? I don't mean the results but rather what you have before calling run.
by rogerbinns 13y ago
What does a query look like when you print it (to help with diagnostics and debugging)? I don't mean the results but rather what you have before calling run.
- orthecreedence 13y agoOn my primary platform (common lisp) when printed it looks like a large set of nested structures made up of "terms" (ie "create_database", "table", "function", etc) and datums (array, float, kv pair, etc). It's easy to pretty-print and get a view of the entire query structure before it's shipped off the the protocol buffer serializer. That's lisp though, and the print methods for the protobuf objects are built into the protobuf library. It's really going to depend on your language, probably. The nice thing about the query language is that the mapping between what you send the driver and what the driver sends to the server is pretty much 1:1, so what you see in front of you is the printed query (save for bugs in the driver).