autocommit property
bool
get
autocommit
Get the current autocommit mode.
When autocommit is enabled, each DML statement is automatically committed after execution. When disabled (default), you must call commit explicitly.
Example:
if (connection.autocommit) {
print('Autocommit is enabled');
}
See also:
- setAutocommit to enable/disable autocommit
- commit for manual commits
Implementation
bool get autocommit => _autocommit;