It's not clear how to run a query (or conduct an API call) to list all tables. Is this possible with Spanner?
Asked
Active
Viewed 2,997 times
1 Answers
8
Ah, looks like this is documented here: https://cloud.google.com/spanner/docs/information-schema. In particular:
SELECT
t.table_name
FROM
information_schema.tables AS t
WHERE
t.table_catalog = '' and t.table_schema = ''

abhillman
- 3,942
- 1
- 20
- 21