Skip to content

Conversation

olavloite
Copy link
Collaborator

Adds a .NET wrapper and tests for SpannerLib.

Creates a spannerlib module and adds functions for CreatePool and CreateConnection.
Adds a Java wrapper for SpannerLib and some simple tests for this wrapper.
Adds an Execute function for SpannerLib that can be used to execute any type
of SQL statement. The return type is always a Rows object. The Rows object
is empty for DDL statements, it only contains ResultSetStats for DML statements
without a THEN RETURN clause, and it contains actual row data for queries and
DML statements with a THEN RETURN clause.

The Execute function can also be used to execute client-side SQL statements,
like BEGIN, COMMIT, SET, SHOW, etc.
Adds an ExecuteBatch function to SpannerLib that supports executing DML or DDL
statements as a single batch. The function accepts an ExecuteBatchDml request
for both types of batches. The type of batch that is actually being executed
is determined based on the statements in the batch. Mixing DML and DDL in the
same batch is not supported. Queries are also not supported in batches.
Adds a WriteMutations function for SpannerLib. This function can be used
to write mutations to Spanner in two ways:
1. In a transaction: The mutations are buffered in the current read/write transaction.
   The returned message is empty.
2. Outside a transaction: The mutations are written to Spanner directly in a new read/write
   transaction. The returned message contains the CommitResponse.
@olavloite olavloite requested a review from a team as a code owner September 17, 2025 15:10
@olavloite olavloite force-pushed the spanner-lib-dotnet-wrapper branch 9 times, most recently from 74e165f to 72ce0b3 Compare September 17, 2025 16:00
Adds a .NET wrapper and tests for SpannerLib.
@olavloite olavloite force-pushed the spanner-lib-dotnet-wrapper branch from 72ce0b3 to c69edab Compare September 17, 2025 16:08
Base automatically changed from spanner-lib-mutations to spanner-lib-batch September 20, 2025 10:10
Base automatically changed from spanner-lib-batch to spanner-lib-tx September 20, 2025 10:14
Base automatically changed from spanner-lib-tx to spanner-lib-execute September 20, 2025 13:06
Base automatically changed from spanner-lib-execute to java-wrapper September 20, 2025 13:35
* chore: add Java wrapper for SpannerLib

Adds a Java wrapper for SpannerLib and some simple tests for this wrapper.

* chore: add Execute function for SpannerLib (#529)

* chore: add Execute function for SpannerLib

Adds an Execute function for SpannerLib that can be used to execute any type
of SQL statement. The return type is always a Rows object. The Rows object
is empty for DDL statements, it only contains ResultSetStats for DML statements
without a THEN RETURN clause, and it contains actual row data for queries and
DML statements with a THEN RETURN clause.

The Execute function can also be used to execute client-side SQL statements,
like BEGIN, COMMIT, SET, SHOW, etc.

* chore: add transaction support for SpannerLib (#530)

* chore: add transaction support for SpannerLib

* chore: add ExecuteBatch to SpannerLib (#531)

* chore: add ExecuteBatch to SpannerLib

Adds an ExecuteBatch function to SpannerLib that supports executing DML or DDL
statements as a single batch. The function accepts an ExecuteBatchDml request
for both types of batches. The type of batch that is actually being executed
is determined based on the statements in the batch. Mixing DML and DDL in the
same batch is not supported. Queries are also not supported in batches.

* chore: add WriteMutations function for SpannerLib (#532)

Adds a WriteMutations function for SpannerLib. This function can be used
to write mutations to Spanner in two ways:
1. In a transaction: The mutations are buffered in the current read/write transaction.
   The returned message is empty.
2. Outside a transaction: The mutations are written to Spanner directly in a new read/write
   transaction. The returned message contains the CommitResponse.
Base automatically changed from java-wrapper to spanner-lib-create-pool-and-connection September 20, 2025 13:39
@olavloite olavloite force-pushed the spanner-lib-create-pool-and-connection branch from f757102 to c576fab Compare September 20, 2025 14:11
Base automatically changed from spanner-lib-create-pool-and-connection to main September 20, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants