public QupidQuery(PropertyList pl, string collection, List<WhereClause> where, UnwindClause unwind, GroupByClause groupBy, HavingClause have, WithClause with) { CollectionName = collection; SelectProperties = pl; WhereClauses = where; UnwindClause = unwind; GroupByClause = groupBy; HavingClause = have; WithClause = with; }
private void AnalyzeUnwindClause(QupidCollection collection, UnwindClause unwindClause) { if (unwindClause != null) { var prop = unwindClause.Property; var shortName = collection.ConvertToShortPath(prop.Path); if (shortName == null) { _compiler.ErrorManager.AddWarning("The 'unwind' property (" + prop.Path + ") is invalid.", prop.Line, prop.Character); } else { prop.AnalyzedName = shortName; } } }