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:

Implementation

bool get autocommit => _autocommit;