Skip to content

Commit e3abd5f

Browse files
authored
docs: add samples tag (#2008)
1 parent f12e295 commit e3abd5f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

samples/database-create-with-default-leader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
'use strict';
2121

2222
function main(instanceId, databaseId, defaultLeader, projectId) {
23+
// [START spanner_create_database_with_default_leader]
2324
/**
2425
* TODO(developer): Uncomment the following lines before running the sample.
2526
*/
@@ -87,6 +88,7 @@ function main(instanceId, databaseId, defaultLeader, projectId) {
8788
);
8889
}
8990
createDatabaseWithDefaultLeader();
91+
// [END spanner_create_database_with_default_leader]
9092
}
9193
process.on('unhandledRejection', err => {
9294
console.error(err.message);

samples/database-get-ddl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
'use strict';
2121

2222
function main(instanceId, databaseId, projectId) {
23+
// [START spanner_get_database_ddl]
2324
/**
2425
* TODO(developer): Uncomment the following lines before running the sample.
2526
*/
@@ -59,6 +60,7 @@ function main(instanceId, databaseId, projectId) {
5960
});
6061
}
6162
getDatabaseDdl();
63+
// [END spanner_get_database_ddl]
6264
}
6365
process.on('unhandledRejection', err => {
6466
console.error(err.message);

0 commit comments

Comments
 (0)