Skip to content

Commit

Permalink
docs: add samples tag (#2008)
Browse files Browse the repository at this point in the history
  • Loading branch information
alkatrivedi committed Mar 4, 2024
1 parent f12e295 commit e3abd5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/database-create-with-default-leader.js
Expand Up @@ -20,6 +20,7 @@
'use strict';

function main(instanceId, databaseId, defaultLeader, projectId) {
// [START spanner_create_database_with_default_leader]
/**
* TODO(developer): Uncomment the following lines before running the sample.
*/
Expand Down Expand Up @@ -87,6 +88,7 @@ function main(instanceId, databaseId, defaultLeader, projectId) {
);
}
createDatabaseWithDefaultLeader();
// [END spanner_create_database_with_default_leader]
}
process.on('unhandledRejection', err => {
console.error(err.message);
Expand Down
2 changes: 2 additions & 0 deletions samples/database-get-ddl.js
Expand Up @@ -20,6 +20,7 @@
'use strict';

function main(instanceId, databaseId, projectId) {
// [START spanner_get_database_ddl]
/**
* TODO(developer): Uncomment the following lines before running the sample.
*/
Expand Down Expand Up @@ -59,6 +60,7 @@ function main(instanceId, databaseId, projectId) {
});
}
getDatabaseDdl();
// [END spanner_get_database_ddl]
}
process.on('unhandledRejection', err => {
console.error(err.message);
Expand Down

0 comments on commit e3abd5f

Please sign in to comment.