Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Make usage example in samples consistent #2162

Closed
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 36 additions & 38 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ Before running the samples, make sure you've followed the steps outlined in

`npm install`

`cd ..`

## Samples


Expand Down Expand Up @@ -172,7 +170,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-cancel.js`
`node backups-cancel.js`


-----
Expand Down Expand Up @@ -223,7 +221,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-create-with-encryption-key.js`
`node backups-create-with-encryption-key.js`


-----
Expand Down Expand Up @@ -257,7 +255,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-create.js`
`node backups-create.js`


-----
Expand All @@ -274,7 +272,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-delete.js`
`node backups-delete.js`


-----
Expand All @@ -291,7 +289,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-get-database-operations.js`
`node backups-get-database-operations.js`


-----
Expand All @@ -308,7 +306,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-get-operations.js`
`node backups-get-operations.js`


-----
Expand All @@ -325,7 +323,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-get.js`
`node backups-get.js`


-----
Expand All @@ -342,7 +340,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-restore-with-encryption-key.js`
`node backups-restore-with-encryption-key.js`


-----
Expand Down Expand Up @@ -376,7 +374,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-restore.js`
`node backups-restore.js`


-----
Expand All @@ -393,7 +391,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups-update.js`
`node backups-update.js`


-----
Expand All @@ -410,7 +408,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/backups.js`
`node backups.js`


-----
Expand Down Expand Up @@ -444,7 +442,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/batch.js`
`node batch.js`


-----
Expand Down Expand Up @@ -495,7 +493,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/crud.js`
`node crud.js`


-----
Expand Down Expand Up @@ -529,7 +527,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/database-create-with-encryption-key.js`
`node database-create-with-encryption-key.js`


-----
Expand Down Expand Up @@ -563,7 +561,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/database-create-with-version-retention-period.js`
`node database-create-with-version-retention-period.js`


-----
Expand Down Expand Up @@ -648,7 +646,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/datatypes.js`
`node datatypes.js`


-----
Expand Down Expand Up @@ -750,7 +748,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/dml.js`
`node dml.js`


-----
Expand Down Expand Up @@ -801,7 +799,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/get-commit-stats.js`
`node get-commit-stats.js`


-----
Expand Down Expand Up @@ -937,7 +935,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/indexing.js`
`node indexing.js`


-----
Expand Down Expand Up @@ -1073,7 +1071,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/instance-with-processing-units.js`
`node instance-with-processing-units.js`


-----
Expand All @@ -1090,7 +1088,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/instance.js`
`node instance.js`


-----
Expand All @@ -1107,7 +1105,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/json-add-column.js`
`node json-add-column.js`


-----
Expand All @@ -1124,7 +1122,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/json-query-parameter.js`
`node json-query-parameter.js`


-----
Expand All @@ -1141,7 +1139,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/json-update-data.js`
`node json-update-data.js`


-----
Expand Down Expand Up @@ -1226,7 +1224,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/numeric-add-column.js`
`node numeric-add-column.js`


-----
Expand All @@ -1243,7 +1241,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/numeric-query-parameter.js`
`node numeric-query-parameter.js`


-----
Expand All @@ -1260,7 +1258,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/numeric-update-data.js`
`node numeric-update-data.js`


-----
Expand Down Expand Up @@ -1685,7 +1683,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/proto-query-data.js`
`node proto-query-data.js`


-----
Expand Down Expand Up @@ -1719,7 +1717,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/proto-update-data-dml.js`
`node proto-update-data-dml.js`


-----
Expand All @@ -1736,7 +1734,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/proto-update-data.js`
`node proto-update-data.js`


-----
Expand All @@ -1753,7 +1751,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/queryoptions.js`
`node queryoptions.js`


-----
Expand All @@ -1770,7 +1768,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/quickstart.js`
`node quickstart.js`


-----
Expand Down Expand Up @@ -1923,7 +1921,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/schema.js`
`node schema.js`


-----
Expand Down Expand Up @@ -1991,7 +1989,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/struct.js`
`node struct.js`


-----
Expand Down Expand Up @@ -2059,7 +2057,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/timestamp.js`
`node timestamp.js`


-----
Expand Down Expand Up @@ -2093,7 +2091,7 @@ View the [source code](https://github.com/googleapis/nodejs-spanner/blob/main/sa
__Usage:__


`node samples/transaction.js`
`node transaction.js`


-----
Expand Down
Loading