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.
| Add and drop new database role |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/add-and-drop-new-database-role.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/add-and-drop-new-database-role.js,samples/README.md)|
92
93
| Backups-cancel |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/backups-cancel.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/backups-cancel.js,samples/README.md)|
93
94
| Copies a source backup |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/backups-copy.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/backups-copy.js,samples/README.md)|
94
95
| Backups-create-with-encryption-key |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/backups-create-with-encryption-key.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/backups-create-with-encryption-key.js,samples/README.md)|
@@ -111,7 +112,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
111
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)|
112
113
| 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)|
113
114
| DML |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/dml.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.js,samples/README.md)|
115
+
| Enable fine grained access control |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/enable-fine-grained-access.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/enable-fine-grained-access.js,samples/README.md)|
114
116
| Get-commit-stats |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/get-commit-stats.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/get-commit-stats.js,samples/README.md)|
117
+
| List database roles |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/get-database-roles.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/get-database-roles.js,samples/README.md)|
115
118
| Gets the instance config metadata for the configuration nam6 |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/get-instance-config.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/get-instance-config.js,samples/README.md)|
116
119
| Creates a new value-storing index |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/index-create-storing.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/index-create-storing.js,samples/README.md)|
117
120
| Creates a new index |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/index-create.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/index-create.js,samples/README.md)|
@@ -153,6 +156,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
153
156
| Query the information schema metadata in a Spanner PostgreSQL database. |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-schema-information.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/pg-schema-information.js,samples/README.md)|
154
157
| Queryoptions |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/queryoptions.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/queryoptions.js,samples/README.md)|
155
158
| Quickstart |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/quickstart.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/quickstart.js,samples/README.md)|
159
+
| Read data with database role |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/read-data-with-database-role.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/read-data-with-database-role.js,samples/README.md)|
156
160
| Sets a request tag for a single query |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/request-tag.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/request-tag.js,samples/README.md)|
157
161
| Run Batch update with RPC priority |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/rpc-priority-batch-dml.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/rpc-priority-batch-dml.js,samples/README.md)|
158
162
| Run partitioned update with RPC priority |[source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/rpc-priority-partitioned-dml.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/rpc-priority-partitioned-dml.js,samples/README.md)|
@@ -36,7 +37,9 @@ and automatic, synchronous replication for high availability.
36
37
*[Updates the default leader of an existing database](#updates-the-default-leader-of-an-existing-database)
37
38
*[Datatypes](#datatypes)
38
39
*[DML](#dml)
40
+
*[Enable fine grained access control](#enable-fine-grained-access-control)
39
41
*[Get-commit-stats](#get-commit-stats)
42
+
*[List database roles](#list-database-roles)
40
43
*[Gets the instance config metadata for the configuration nam6](#gets-the-instance-config-metadata-for-the-configuration-nam6)
41
44
*[Creates a new value-storing index](#creates-a-new-value-storing-index)
42
45
*[Creates a new index](#creates-a-new-index)
@@ -78,6 +81,7 @@ and automatic, synchronous replication for high availability.
78
81
*[Query the information schema metadata in a Spanner PostgreSQL database.](#query-the-information-schema-metadata-in-a-spanner-postgresql-database.)
79
82
*[Queryoptions](#queryoptions)
80
83
*[Quickstart](#quickstart)
84
+
*[Read data with database role](#read-data-with-database-role)
81
85
*[Sets a request tag for a single query](#sets-a-request-tag-for-a-single-query)
82
86
*[Run Batch update with RPC priority](#run-batch-update-with-rpc-priority)
83
87
*[Run partitioned update with RPC priority](#run-partitioned-update-with-rpc-priority)
@@ -106,6 +110,23 @@ Before running the samples, make sure you've followed the steps outlined in
106
110
107
111
108
112
113
+
### Add and drop new database role
114
+
115
+
View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/add-and-drop-new-database-role.js).
116
+
117
+
[![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/add-and-drop-new-database-role.js,samples/README.md)
View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/backups-cancel.js).
@@ -480,6 +501,23 @@ __Usage:__
480
501
481
502
482
503
504
+
### Enable fine grained access control
505
+
506
+
View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/enable-fine-grained-access.js).
507
+
508
+
[![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/enable-fine-grained-access.js,samples/README.md)
View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/get-commit-stats.js).
@@ -497,6 +535,23 @@ __Usage:__
497
535
498
536
499
537
538
+
### List database roles
539
+
540
+
View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/get-database-roles.js).
541
+
542
+
[![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/get-database-roles.js,samples/README.md)
### Gets the instance config metadata for the configuration nam6
501
556
502
557
View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/get-instance-config.js).
@@ -1194,6 +1249,23 @@ __Usage:__
1194
1249
1195
1250
1196
1251
1252
+
### Read data with database role
1253
+
1254
+
View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/read-data-with-database-role.js).
1255
+
1256
+
[![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/read-data-with-database-role.js,samples/README.md)
0 commit comments