Skip to content

Commit 2e20293

Browse files
committed
Edit comments
1 parent aae2bd2 commit 2e20293

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

soql/parser/types/types.go

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,16 @@ type SoqlTimeRange struct {
124124
End time.Time
125125
}
126126

127-
// TODO: type SoqlObjectType int // (MainQueryPrimary, SubQueryPrimary, ParentRelationship, ConditionalOperand)
128-
129127
// Object (table)
130128
type SoqlObjectInfo struct {
131-
//Type SoqlQueryType `json:"type,omitempty"` // TODO:
132129
Name []string `json:"name,omitempty"` // Object (table) or relationship name with namespace (object graph path)
133130
AliasName string `json:"aliasName,omitempty"` // Alias name
134131
HasConditions bool `json:"hasConditions,omitempty"` // Query has conditions originally. If false and this object is on the right side, prevent performing an inner join.
135132
InnerJoin bool `json:"innerJoin,omitempty"` // When this object is on the left side, an inner join is performed.
136133
Hints []SoqlQueryHint `json:"hints,omitempty"` // TODO: hints
137134
PerObjectQuery *SoqlQuery `json:"perObjectQuery"` // A query that extracts only the filter and sort conditions and fields related to this object. A simple query, not including function calls, etc.
138135
ViewId int `json:"viewId,omitempty"` // View (table/object) unique id; 1-based; If 0, it is not set.
139-
ParentViewId int `json:"parentViewId,omitempty"` // TODO:
136+
ParentViewId int `json:"parentViewId,omitempty"` // View id of parent (left side on joining) relationship object.
140137
Key string `json:"key,omitempty"` // (internal use) Base64-encoded, dot-delimited Name field value
141138
}
142139

@@ -228,10 +225,10 @@ type SoqlOrderByInfo struct {
228225
}
229226

230227
type SoqlOffsetAndLimitClause struct {
231-
Offset int64 `json:"offset,omitempty"` // offset
232-
Limit int64 `json:"limit,omitempty"` // limit; 0 represents not limited.
233-
OffsetParamName string `json:"offsetParamName,omitempty"`
234-
LimitParamName string `json:"limitParamName,omitempty"`
228+
Offset int64 `json:"offset,omitempty"` // offset
229+
Limit int64 `json:"limit,omitempty"` // limit; 0 represents not limited.
230+
OffsetParamName string `json:"offsetParamName,omitempty"` // offset for parameterized query; If set, it has precedence over the value
231+
LimitParamName string `json:"limitParamName,omitempty"` // limit for parameterized query; If set, it has precedence over the value
235232
}
236233

237234
type SoqlForClause struct {
@@ -243,12 +240,12 @@ type SoqlForClause struct {
243240
}
244241

245242
type SoqlQueryMeta struct {
246-
Version string `json:"version,omitempty"`
247-
Date time.Time `json:"date,omitempty"`
248-
Source string `json:"source,omitempty"`
249-
MaxDepth int `json:"maxDepth,omitempty"` // TODO:
250-
NextColumnId int `json:"nextColumnId,omitempty"`
251-
NextViewId int `json:"nextViewId,omitempty"`
243+
Version string `json:"version,omitempty"` // format version
244+
Date time.Time `json:"date,omitempty"` // compiled datetime
245+
Source string `json:"source,omitempty"` // source
246+
MaxDepth int `json:"maxDepth,omitempty"` // max depth of object graph
247+
NextColumnId int `json:"nextColumnId,omitempty"` // next column id (a number of columns)
248+
NextViewId int `json:"nextViewId,omitempty"` // next view id (a number of objects)
252249
}
253250

254251
type SoqlQuery struct {
@@ -262,7 +259,7 @@ type SoqlQuery struct {
262259
For SoqlForClause `json:"for,omitempty"` // For clause
263260
Parent *SoqlQuery `json:"-"` // Pointer to parent query; Not used for "PerObjectQuery"
264261
IsAggregation bool `json:"isAggregation,omitempty"` // It is an aggregation result or not; Not used for "PerObjectQuery"
265-
IsCorelated bool `json:"isCorelated,omitempty"` // TODO:
262+
IsCorelated bool `json:"isCorelated,omitempty"` // Co-related query if true
266263
PostProcessWhere []SoqlCondition `json:"postProcessWhere,omitempty"` // Post-processing conditions (Conditions to apply after being filtered in the query for each object)
267264
Meta *SoqlQueryMeta `json:"meta,omitempty"`
268265

0 commit comments

Comments
 (0)