You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
110
110
| Gets the schema definition of an existing database |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-get-ddl.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-get-ddl.js,samples/README.md)|
111
111
| Gets the default leader option of an existing database |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-get-default-leader.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-get-default-leader.js,samples/README.md)|
112
112
| Updates the default leader of an existing database |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-update-default-leader.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-update-default-leader.js,samples/README.md)|
113
+
| Updates a Cloud Spanner Database. |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-update.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-update.js,samples/README.md)|
113
114
| Datatypes |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/datatypes.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/datatypes.js,samples/README.md)|
114
115
| Delete using DML returning. |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/dml-returning-delete.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/dml-returning-delete.js,samples/README.md)|
115
116
| Insert using DML returning. |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/dml-returning-insert.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/dml-returning-insert.js,samples/README.md)|
Copy file name to clipboardExpand all lines: samples/README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ and automatic, synchronous replication for high availability.
35
35
*[Gets the schema definition of an existing database](#gets-the-schema-definition-of-an-existing-database)
36
36
*[Gets the default leader option of an existing database](#gets-the-default-leader-option-of-an-existing-database)
37
37
*[Updates the default leader of an existing database](#updates-the-default-leader-of-an-existing-database)
38
+
*[Updates a Cloud Spanner Database.](#updates-a-cloud-spanner-database.)
38
39
*[Datatypes](#datatypes)
39
40
*[Delete using DML returning.](#delete-using-dml-returning.)
40
41
*[Insert using DML returning.](#insert-using-dml-returning.)
@@ -473,6 +474,23 @@ __Usage:__
473
474
474
475
475
476
477
+
### Updates a Cloud Spanner Database.
478
+
479
+
View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-update.js).
480
+
481
+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-update.js,samples/README.md)
* @see [UpdateDatabase API Documentation](https://cloud.google.com/spanner/docs/reference/rpc/google.spanner.admin.database.v1#google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase)
450
+
*
451
+
* @param {object} metadata The metadata you wish to set.
0 commit comments