You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the auto_commit mode is turned on, the Shell will execute each statement as individual transaction implicitly, which means we do not need to explicitly type begin and commit before statements. Example:
qldb> select * from foo
+-----+
| foo |
+=====+
| bar |
+-----+
1 document in bag (read-ios: 1, server-time: 11ms, total-time: 155ms)
qldb> <-- transaction opened and committed implicitly
There are some suggestions that instead open and commit the transaction automatically, we could just open the transaction but don't commit it. In other words, after we type a statement, the Shell will enter transaction mode for following statements, and we need to type commit or abort explicitly to end the transaction. The output would be like following:
qldb> select * from foo
+-----+
| foo |
+=====+
| bar |
+-----+
1 document in bag (read-ios: 1, server-time: 11ms, total-time: 155ms)
qldb *> <-- entered transaction mode, need to type commit or abort to end the transaction
That will give user more control about the transaction workflow and we could then rename the auto_commit to auto_start to better align the situation.
The text was updated successfully, but these errors were encountered:
If the
auto_commit
mode is turned on, the Shell will execute each statement as individual transaction implicitly, which means we do not need to explicitly typebegin
andcommit
before statements. Example:There are some suggestions that instead open and commit the transaction automatically, we could just open the transaction but don't commit it. In other words, after we type a statement, the Shell will enter transaction mode for following statements, and we need to type
commit
orabort
explicitly to end the transaction. The output would be like following:That will give user more control about the transaction workflow and we could then rename the
auto_commit
toauto_start
to better align the situation.The text was updated successfully, but these errors were encountered: