blob: 2163f0733b67a01dfd8a807d2327d1f07b56a578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package datastore
type RelationshipQueryOperation int
const (
RelationshipQueryNone RelationshipQueryOperation = 0
RelationshipQueryOr RelationshipQueryOperation = 1
RelationshipQueryAnd RelationshipQueryOperation = 2
)
type RelationshipsQueryTree struct {
op RelationshipQueryOperation
filter RelationshipsFilter
children []RelationshipsQueryTree
}
func NewRelationshipQueryTree(filter RelationshipsFilter) RelationshipsQueryTree {
return RelationshipsQueryTree{
op: RelationshipQueryNone,
filter: filter,
children: nil,
}
}
|