cloudspannerecosystem / spanner-cli

Interactive command line tool for Cloud Spanner
Apache License 2.0
230 stars 28 forks source link

Implement --proto-descriptor-file #195

Closed apstndb closed 3 weeks ago

apstndb commented 3 weeks ago

This PR implements --proto-descriptor-file option with USE statement compatibility.

$ go run ./ --database apstndb-sampledb3 --proto-descriptor-file order_descriptors.pb
Connected.
spanner> ALTER PROTO BUNDLE INSERT (`examples.shipping.OrderHistory`);
Query OK, 0 rows affected (11.11 sec)

spanner> USE apstndb-sampledb-with-data-idx;
spanner> ALTER PROTO BUNDLE INSERT (`examples.shipping.OrderHistory`);
Query OK, 0 rows affected (9.23 sec)

fixes #174