I believe to be more ANSI compatible Clickhouse should implement this:
A setting transactions_enabled = false (default)
- false -- old (current) behaviour, no transactions.
- true -- transactions supported.
A settings autocommit = true (default) applicable only when transactions_enabled = true
- true - each command (insert, select ... ) automatically starts a transaction and commits / rollsback automatically (when the command finishes successfully / unsuccessfully or with a timeout).
- false - each command (insert, select ... ) automatically starts a transaction and to end the transaction need to execute
commit.
Basically current begin transaction === set autocommit=false (they are synonyms).
I believe to be more ANSI compatible Clickhouse should implement this:
A setting
transactions_enabled = false (default)A settings
autocommit = true (default)applicable only whentransactions_enabled = truecommit.Basically current
begin transaction===set autocommit=false(they are synonyms).