diff --git a/.run/nb --list-drivers.run.xml b/.run/nb --list-drivers.run.xml
index 55872229e..ab4f658c9 100644
--- a/.run/nb --list-drivers.run.xml
+++ b/.run/nb --list-drivers.run.xml
@@ -5,10 +5,10 @@
-
+
-
\ No newline at end of file
+
diff --git a/.run/nb --list-scenarios.run.xml b/.run/nb --list-scenarios.run.xml
index f1a7a6734..580ef792d 100644
--- a/.run/nb --list-scenarios.run.xml
+++ b/.run/nb --list-scenarios.run.xml
@@ -5,10 +5,10 @@
-
+
-
\ No newline at end of file
+
diff --git a/.run/spanner_schema_database_create.run.xml b/.run/spanner_schema_database_create.run.xml
new file mode 100644
index 000000000..b94ebac09
--- /dev/null
+++ b/.run/spanner_schema_database_create.run.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/GCPSpannerOpMapper.java b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/GCPSpannerOpMapper.java
index aa8533f9b..d9a59fd2a 100644
--- a/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/GCPSpannerOpMapper.java
+++ b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/GCPSpannerOpMapper.java
@@ -55,6 +55,10 @@ public class GCPSpannerOpMapper implements OpMapper> {
logger.info(() -> "Using '" + typeAndTarget.enumId + "' op type for op template '" + op.getName() + "'");
return switch (typeAndTarget.enumId) {
+ case drop_database_ddl ->
+ new GCPSpannerDropDatabaseDdlOpDispenser(adapter, op, typeAndTarget.targetFunction);
+ case create_database_ddl ->
+ new GCPSpannerCreateDatabaseDdlOpDispenser(adapter, op, typeAndTarget.targetFunction);
case update_database_ddl ->
new GCPSpannerUpdateDatabaseDdlOpDispenser(adapter, op, typeAndTarget.targetFunction);
case insert ->
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/opdispensers/GCPSpannerCreateDatabaseDdlOpDispenser.java b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/opdispensers/GCPSpannerCreateDatabaseDdlOpDispenser.java
new file mode 100644
index 000000000..454baa4d4
--- /dev/null
+++ b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/opdispensers/GCPSpannerCreateDatabaseDdlOpDispenser.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright (c) 2020-2024 nosqlbench
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package io.nosqlbench.adapter.gcpspanner.opdispensers;
+
+
+import io.nosqlbench.adapter.gcpspanner.GCPSpannerDriverAdapter;
+import io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerBaseOp;
+import io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerCreateDatabaseDdlOp;
+import io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerUpdateDatabaseDdlOp;
+import io.nosqlbench.adapters.api.templating.ParsedOp;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+
+import java.util.function.LongFunction;
+
+/**
+ * Dispenser class for creating databases of {@link GCPSpannerCreateDatabaseDdlOp}.
+ *
+ * @see
+ * CreateDatabaseRequest which can be a stretch goal to combine all of DB, Table(s), and Indexes into one-single call.
+ */
+public class GCPSpannerCreateDatabaseDdlOpDispenser extends GCPSpannerBaseOpDispenser {
+ private static final Logger logger = LogManager.getLogger(GCPSpannerCreateDatabaseDdlOpDispenser.class);
+ private final LongFunction opFunction;
+
+ /**
+ * Constructor for {@link GCPSpannerCreateDatabaseDdlOpDispenser}.
+ *
+ * @param adapter the {@link GCPSpannerDriverAdapter} instance
+ * @param op the {@link ParsedOp} instance
+ * @param targetFunction a {@link LongFunction} that provides the target string
+ */
+ public GCPSpannerCreateDatabaseDdlOpDispenser(GCPSpannerDriverAdapter adapter, ParsedOp op, LongFunction targetFunction) {
+ super(adapter, op, targetFunction);
+ this.opFunction = createOpFunction(op);
+ }
+
+ /**
+ * Creates a {@link LongFunction} that generates {@link GCPSpannerUpdateDatabaseDdlOp} instances.
+ *
+ * @param op the {@link ParsedOp} instance
+ * @return a {@link LongFunction} that generates {@link GCPSpannerUpdateDatabaseDdlOp} instances
+ */
+ private LongFunction createOpFunction(ParsedOp op) {
+ return (l) -> new GCPSpannerCreateDatabaseDdlOp(
+ spaceFunction.apply(l).getSpanner(),
+ l,
+ targetFunction.apply(l),
+ spaceFunction.apply(l).getDbAdminClient(),
+ spaceFunction.apply(l).getInstanceId()
+ );
+ }
+
+ /**
+ * Retrieves an operation instance based on the provided value.
+ *
+ * @param value the long value used to generate the operation
+ * @return a {@link GCPSpannerBaseOp} instance
+ */
+ @Override
+ public GCPSpannerBaseOp> getOp(long value) {
+ return opFunction.apply(value);
+ }
+}
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/opdispensers/GCPSpannerDropDatabaseDdlOpDispenser.java b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/opdispensers/GCPSpannerDropDatabaseDdlOpDispenser.java
new file mode 100644
index 000000000..e6edde42b
--- /dev/null
+++ b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/opdispensers/GCPSpannerDropDatabaseDdlOpDispenser.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) 2020-2024 nosqlbench
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package io.nosqlbench.adapter.gcpspanner.opdispensers;
+
+
+import io.nosqlbench.adapter.gcpspanner.GCPSpannerDriverAdapter;
+import io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerBaseOp;
+import io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerDropDatabaseDdlOp;
+import io.nosqlbench.adapters.api.templating.ParsedOp;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+
+import java.util.function.LongFunction;
+
+/**
+ * Dispenser class for creating databases of {@link GCPSpannerDropDatabaseDdlOp}.
+ *
+ * @see
+ * DropDatabaseRequest which can be a stretch goal to combine all of DB, Table(s), and Indexes into one-single call.
+ */
+public class GCPSpannerDropDatabaseDdlOpDispenser extends GCPSpannerBaseOpDispenser {
+ private static final Logger logger = LogManager.getLogger(GCPSpannerDropDatabaseDdlOpDispenser.class);
+ private final LongFunction opFunction;
+
+ /**
+ * Constructor for {@link GCPSpannerDropDatabaseDdlOpDispenser}.
+ *
+ * @param adapter the {@link GCPSpannerDriverAdapter} instance
+ * @param op the {@link ParsedOp} instance
+ * @param targetFunction a {@link LongFunction} that provides the target string
+ */
+ public GCPSpannerDropDatabaseDdlOpDispenser(GCPSpannerDriverAdapter adapter, ParsedOp op, LongFunction targetFunction) {
+ super(adapter, op, targetFunction);
+ this.opFunction = DropOpFunction(op);
+ }
+
+ /**
+ * Drops a {@link LongFunction} that generates {@link GCPSpannerDropDatabaseDdlOp} instances.
+ *
+ * @param op the {@link ParsedOp} instance
+ * @return a {@link LongFunction} that generates {@link GCPSpannerDropDatabaseDdlOp} instances
+ */
+ private LongFunction DropOpFunction(ParsedOp op) {
+ return (l) -> new GCPSpannerDropDatabaseDdlOp(
+ spaceFunction.apply(l).getSpanner(),
+ l,
+ targetFunction.apply(l),
+ spaceFunction.apply(l).getDbAdminClient(),
+ spaceFunction.apply(l).getDbAdminClient().getDatabase(spaceFunction.apply(l).getInstanceId(), spaceFunction.apply(l).getDatabaseIdString())
+ );
+ }
+
+ /**
+ * Retrieves an operation instance based on the provided value.
+ *
+ * @param value the long value used to generate the operation
+ * @return a {@link GCPSpannerBaseOp} instance
+ */
+ @Override
+ public GCPSpannerBaseOp> getOp(long value) {
+ return opFunction.apply(value);
+ }
+}
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/ops/GCPSpannerCreateDatabaseDdlOp.java b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/ops/GCPSpannerCreateDatabaseDdlOp.java
new file mode 100644
index 000000000..90589c3ab
--- /dev/null
+++ b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/ops/GCPSpannerCreateDatabaseDdlOp.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c) 2020-2024 nosqlbench
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package io.nosqlbench.adapter.gcpspanner.ops;
+
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.spanner.Database;
+import com.google.cloud.spanner.DatabaseAdminClient;
+import com.google.cloud.spanner.Spanner;
+import com.google.spanner.admin.database.v1.CreateDatabaseMetadata;
+
+/**
+ * This class represents an operation to create the database DDL (Data Definition Language) in Google Cloud Spanner.
+ * It extends the {@link GCPSpannerBaseOp} class and provides the implementation for applying the DDL update operation.
+ */
+public class GCPSpannerCreateDatabaseDdlOp extends GCPSpannerBaseOp {
+ private final String createDatbaseStatement;
+ private final DatabaseAdminClient dbAdminClient;
+ private final String instanceId;
+
+ /**
+ * Constructs a new {@link GCPSpannerUpdateDatabaseDdlOp}.
+ *
+ * @param searchIndexClient the {@link Spanner} client
+ * @param requestParam the request parameter
+ * @param createDatbaseStatement the SQL statement to create the table
+ * @param dbAdminClient the {@link DatabaseAdminClient} to execute the DDL update
+ * @param instanceId the instance ID string representing the target spanner instance
+ */
+ public GCPSpannerCreateDatabaseDdlOp(Spanner searchIndexClient, Long requestParam, String createDatbaseStatement,
+ DatabaseAdminClient dbAdminClient, String instanceId) {
+ super(searchIndexClient, requestParam);
+ this.createDatbaseStatement = createDatbaseStatement;
+ this.dbAdminClient = dbAdminClient;
+ this.instanceId = instanceId;
+ }
+
+ /**
+ * Applies the DDL create operation.
+ *
+ * @param value the value to be used in the operation
+ * @return the result of the operation
+ * @throws RuntimeException if an error occurs during the operation
+ */
+ @Override
+ public Object applyOp(long value) {
+ OperationFuture operation = dbAdminClient.createDatabase(
+ instanceId,
+ createDatbaseStatement,
+ null,
+ null);
+ try {
+ return operation.get();
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+}
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/ops/GCPSpannerDropDatabaseDdlOp.java b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/ops/GCPSpannerDropDatabaseDdlOp.java
new file mode 100644
index 000000000..f5062c0cb
--- /dev/null
+++ b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/ops/GCPSpannerDropDatabaseDdlOp.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2020-2024 nosqlbench
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package io.nosqlbench.adapter.gcpspanner.ops;
+
+import com.google.cloud.spanner.Database;
+import com.google.cloud.spanner.DatabaseAdminClient;
+import com.google.cloud.spanner.Spanner;
+
+/**
+ * This class represents an operation to Drop the database DDL (Data Definition Language) in Google Cloud Spanner.
+ * It extends the {@link GCPSpannerBaseOp} class and provides the implementation for applying the DDL update operation.
+ */
+public class GCPSpannerDropDatabaseDdlOp extends GCPSpannerBaseOp {
+ private final String databaseId;
+ private final DatabaseAdminClient dbAdminClient;
+ private final Database db;
+
+ /**
+ * Constructs a new {@link GCPSpannerUpdateDatabaseDdlOp}.
+ *
+ * @param searchIndexClient the {@link Spanner} client
+ * @param requestParam the request parameter
+ * @param databaseId the database ID to be dropped
+ * @param dbAdminClient the {@link DatabaseAdminClient} to execute the DDL update
+ * @param db the {@link Database} to be dropped
+ */
+ public GCPSpannerDropDatabaseDdlOp(Spanner searchIndexClient, Long requestParam, String databaseId,
+ DatabaseAdminClient dbAdminClient, Database db) {
+ super(searchIndexClient, requestParam);
+ this.databaseId = databaseId;
+ this.dbAdminClient = dbAdminClient;
+ this.db = db;
+ }
+
+ /**
+ * Applies the DDL drop operation.
+ *
+ * @param value the value to be used in the operation
+ * @return the result of the operation
+ * @throws RuntimeException if an error occurs during the operation
+ */
+ @Override
+ public Object applyOp(long value) {
+ try {
+ db.drop();
+ } catch (Exception e) {
+ logger.warn("Error dropping database using the Database object: {}. Will re-try using the DBAdminClient now...", e.getMessage());
+ try {
+ dbAdminClient.dropDatabase(databaseId, null);
+ } catch (Exception ex) {
+ throw new RuntimeException(ex);
+ }
+ }
+ return null;
+ }
+}
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/types/GCPSpannerOpType.java b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/types/GCPSpannerOpType.java
index e55551c8f..f26a06152 100644
--- a/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/types/GCPSpannerOpType.java
+++ b/nb-adapters/adapter-gcp-spanner/src/main/java/io/nosqlbench/adapter/gcpspanner/types/GCPSpannerOpType.java
@@ -30,6 +30,8 @@ package io.nosqlbench.adapter.gcpspanner.types;
* here
*/
public enum GCPSpannerOpType {
+ create_database_ddl,
+ drop_database_ddl,
update_database_ddl,
insert,
execute_dml,
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/create_database_ddl.yaml b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/create_database_ddl.yaml
new file mode 100644
index 000000000..b83c2de07
--- /dev/null
+++ b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/create_database_ddl.yaml
@@ -0,0 +1,11 @@
+scenarios:
+ default:
+ create_db_ddl: run driver=spanner tags==block:schema_db service_account_file=TEMPLATE(service_account_file)
+ project_id=TEMPLATE(project_id) instance_id=TEMPLATE(instance_id) database_id=TEMPLATE(database_id) cycles=1
+
+blocks:
+ schema_db:
+ ops:
+ op1:
+ create_database_ddl: |
+ CREATE DATABASE TEMPLATE(database_id)
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/drop_database_ddl.yaml b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/drop_database_ddl.yaml
new file mode 100644
index 000000000..49bdfabde
--- /dev/null
+++ b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/drop_database_ddl.yaml
@@ -0,0 +1,10 @@
+scenarios:
+ default:
+ drop_db_ddl: run driver=spanner tags==block:schema_drop_db service_account_file=TEMPLATE(service_account_file)
+ project_id=TEMPLATE(project_id) instance_id=TEMPLATE(instance_id) database_id=TEMPLATE(database_id) cycles=1
+
+blocks:
+ schema_drop_db:
+ ops:
+ op1:
+ drop_database_ddl: TEMPLATE(database_id)
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_index_ddl.yaml b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_index_ddl.yaml
index e7f67069d..ce0a691cd 100644
--- a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_index_ddl.yaml
+++ b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_index_ddl.yaml
@@ -1,6 +1,6 @@
scenarios:
default:
- execute_ddl: run driver=spanner tags==blocks:execute_ddl service_account_file=TEMPLATE(service_account_file)
+ execute_ddl: run driver=spanner tags==block:execute_ddl service_account_file=TEMPLATE(service_account_file)
project_id=TEMPLATE(project_id) instance_id=TEMPLATE(instance_id) database_id=TEMPLATE(database_id) cycles=1
# https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#vector_index_option_list
@@ -9,5 +9,5 @@ blocks:
ops:
op1:
update_database_ddl: |
- CREATE VECTOR INDEX VectorsIndex ON vectors(value)
+ CREATE VECTOR INDEX IF NOT EXISTS VectorsIndex ON vectors(value)
OPTIONS (distance_type = 'COSINE', tree_depth = 3, num_branches=1000, num_leaves = 1000000);
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_queryvector_dml.yaml b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_queryvector_dml.yaml
index 9357e4b2f..b07cc6c18 100644
--- a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_queryvector_dml.yaml
+++ b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_queryvector_dml.yaml
@@ -1,6 +1,6 @@
scenarios:
default:
- execute_dml: run driver=spanner tags==blocks:execute_dml service_account_file=TEMPLATE(service_account_file)
+ execute_dml: run driver=spanner tags==block:execute_dml service_account_file=TEMPLATE(service_account_file)
project_id=TEMPLATE(project_id) instance_id=TEMPLATE(instance_id) database_id=TEMPLATE(database_id) cycles=TEMPLATE(cycles)
bindings:
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_table_ddl.yaml b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_table_ddl.yaml
index 5a33d38a4..fcb53fe2f 100644
--- a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_table_ddl.yaml
+++ b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/execute_table_ddl.yaml
@@ -1,6 +1,6 @@
scenarios:
default:
- execute_ddl: run driver=spanner tags==blocks:execute_ddl service_account_file=TEMPLATE(service_account_file)
+ execute_ddl: run driver=spanner tags==block:execute_ddl service_account_file=TEMPLATE(service_account_file)
project_id=TEMPLATE(project_id) instance_id=TEMPLATE(instance_id) database_id=TEMPLATE(database_id) cycles=1
blocks:
@@ -8,4 +8,4 @@ blocks:
ops:
op1:
update_database_ddl: |
- CREATE TABLE vectors (keycol STRING(100),value ARRAY(vector_length=>25) NOT NULL) PRIMARY KEY(keycol)
+ CREATE TABLE IF NOT EXISTS vectors (keycol STRING(100),value ARRAY(vector_length=>25) NOT NULL) PRIMARY KEY(keycol)
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/insert_vector.yaml b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/insert_vector.yaml
index d15c1bce3..21c77fea5 100644
--- a/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/insert_vector.yaml
+++ b/nb-adapters/adapter-gcp-spanner/src/main/resources/activities/insert_vector.yaml
@@ -1,7 +1,7 @@
scenarios:
default:
insert_vector: >-
- run driver=spanner tags==blocks:insert_vector service_account_file=TEMPLATE(service_account_file)
+ run driver=spanner tags==block:insert_vector service_account_file=TEMPLATE(service_account_file)
project_id=TEMPLATE(project_id) instance_id=TEMPLATE(instance_id) database_id=TEMPLATE(database_id) cycles=TEMPLATE(cycles)
bindings:
diff --git a/nb-adapters/adapter-gcp-spanner/src/main/resources/spanner.md b/nb-adapters/adapter-gcp-spanner/src/main/resources/spanner.md
index 70fc12fcc..ccc8cab82 100644
--- a/nb-adapters/adapter-gcp-spanner/src/main/resources/spanner.md
+++ b/nb-adapters/adapter-gcp-spanner/src/main/resources/spanner.md
@@ -19,12 +19,14 @@ to the adapter at runtime.
## Op Templates
The Google Cloud Spanner adapter supports the following operations:
+
+* `create_database_ddl` - Data Definition Language operations such as creating and dropping databases.
* `update_database_ddl` - Data Definition Language operations such as creating and dropping tables, indexes, etc.
* `execute_dml` - Data Manipulation Language operations. Read only operations are supported at this time, including queries
and vector queries.
* `insert` - Insert a single record, vector or non-vector, of data into the database.
+
## Examples
-
-
+Checkout the sample workload files [here](./activities).
---