7

It's not clear how to run a query (or conduct an API call) to list all tables. Is this possible with Spanner?

Maxim
  • 4,075
  • 1
  • 14
  • 23
abhillman
  • 3,942
  • 1
  • 20
  • 21

1 Answers1

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