This feature is about controlling how DDL statements are handled within a transaction.
Reference (java-spanner):
java-spanner has a ddlInTransactionMode connection property that can be set to FAIL (default), ALLOW_IN_EMPTY_TRANSACTION, or AUTO_COMMIT_TRANSACTION.
Implementation suggestion for spanner-mycli:
This could be implemented as a session-init-only system variable, e.g., CLI_DDL_IN_TRANSACTION_MODE. The CLI would then check this variable before executing a DDL statement inside an active transaction.
This feature is about controlling how DDL statements are handled within a transaction.
Reference (
java-spanner):java-spannerhas addlInTransactionModeconnection property that can be set toFAIL(default),ALLOW_IN_EMPTY_TRANSACTION, orAUTO_COMMIT_TRANSACTION.Implementation suggestion for
spanner-mycli:This could be implemented as a session-init-only system variable, e.g.,
CLI_DDL_IN_TRANSACTION_MODE. The CLI would then check this variable before executing a DDL statement inside an active transaction.