googleapis / java-spanner

Apache License 2.0
55 stars 110 forks source link

chore: add property for keep-transaction-alive #3149

Closed olavloite closed 2 months ago

olavloite commented 2 months ago

Adds a property to the Connection API for keeping read/write transactions alive. This can be used in CLI-like applications that might wait a longer period of time for user input. The property is disabled by default, as enabling it can cause read/write transactions to hold on to locks for a longer period of time than intended.

Updates https://github.com/GoogleCloudPlatform/pgadapter/issues/1826

cc @skuruppu