executeSQLByID method

FutureOr<bool> executeSQLByID(
  1. String sqlID, {
  2. Map<String, dynamic>? properties,
})

Implementation

FutureOr<bool> executeSQLByID(String sqlID,
    {Map<String, dynamic>? properties}) {
  final logInfo = this.logInfo;
  final logError = this.logError;

  var dbCommand = getDBCommandWithSQL(sqlID);

  var sql = dbCommand?.getSQLByID(sqlID);
  if (sql == null) {
    if (logInfo != null) {
      logInfo("Can't find SQL: $sqlID");
    }
    return false;
  }

  dbCommand!.logInfo ??= logInfo;
  dbCommand.logError ??= logError;

  return dbCommand.executeSQLs([sql], properties: properties);
}