docs: public void setIsolation(int level) {
  
          if (isInMidTransaction()) {
              throw Error.error(ErrorCode.X_25001);
          }
  
          if (level == SessionInterface.TX_READ_UNCOMMITTED) {
              isReadOnly = true;
          }
  
          isolationMode = level;
  
          if (isolationMode != isolationModeDefault) {
              database.logger.writeToLog(this, getTransactionIsolationSQL());
          }
      }