Skip to content

feat: Support ddlInTransactionMode property #402

@apstndb

Description

@apstndb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions