validateAllCtes method

  1. @protected
void validateAllCtes()
inherited

Implementation

@protected
void validateAllCtes() {
  for (var cte in _ctes) {
    cte.validate(_config);
  }

  int recursiveCount = _ctes.where((cte) => cte.isRecursive).length;
  if (recursiveCount > _config.maxCteDepth) {
    throw InvalidCteConfigurationException(
        'Too many recursive CTEs: $recursiveCount (max: ${_config.maxCteDepth})');
  }
}