unionTypeToSql function

String unionTypeToSql(
  1. UnionType type
)

Implementation

String unionTypeToSql(UnionType type) {
  String result;
  switch (type) {
    case UnionType.UNION_ALL:
      result = 'UNION ALL';
      break;

    case UnionType.UNION:
    default:
      result = 'UNION';
      break;
  }

  return result;
}