Creating a database in Cloud Spanner instances

With the following steps, we can create a database in Cloud Spanner from the GCP console itself:

  1. Click the Create Database button.
  2. We will create a database called holder_details and add its schema. Like previous examples, here too we have customer ID, name, account, and balance columns. We have also defined their datatypes. As you may have already noticed, all of this is happening without creating any instance.
  1. Once you have defined all of your columns, click on the Create Table button and it will lead you to the screen where you can verify your table and start adding data. There is another ...

Get Google Cloud Platform for Architects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.