shlomiw
shlomiw

Reputation: 365

How to rename a database in Spanner

How can I rename a database instance in Spanner?

I've tried:

Thanks

Upvotes: 2

Views: 1388

Answers (1)

Knut Olav Løite
Knut Olav Løite

Reputation: 3512

Unfortunately, it is not possible to change the name of a database after you have created it. The documentation can be found here: https://cloud.google.com/spanner/docs/data-definition-language#database_statements

And it is clear when it comes to renaming a database:

Cannot be changed after you create it.

Upvotes: 3

Related Questions