code: boolean assertAutoCommit() {
      if (!assertConnection()) {
        return false;
      }
  
      try {
        if (getDatabaseConnection().connection.getAutoCommit()) {
          return error(loc("autocommit-needs-off"));
        }
      } catch (Exception e) {
        return error(e);
      }
  
      return true;
    }
docs: Ensure that autocommit is on for the current connection
  
  @return true if autocommit is set