MCPcopy Create free account
hub / github.com/golang/appengine / clone

Method clone

datastore/query.go:98–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (q *Query) clone() *Query {
99 x := *q
100 // Copy the contents of the slice-typed fields to a new backing store.
101 if len(q.filter) > 0 {
102 x.filter = make([]filter, len(q.filter))
103 copy(x.filter, q.filter)
104 }
105 if len(q.order) > 0 {
106 x.order = make([]order, len(q.order))
107 copy(x.order, q.order)
108 }
109 return &x
110}
111
112// Ancestor returns a derivative query with an ancestor filter.
113// The ancestor should not be nil.

Callers 15

AncestorMethod · 0.95
EventualConsistencyMethod · 0.95
FilterMethod · 0.95
OrderMethod · 0.95
ProjectMethod · 0.95
DistinctMethod · 0.95
DistinctOnMethod · 0.95
KeysOnlyMethod · 0.95
LimitMethod · 0.95
OffsetMethod · 0.95
BatchSizeMethod · 0.95
StartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected