MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Iterate

Method Iterate

db/functions.go:54–54  ·  view source on GitHub ↗

Calls a user function, returning a query result iterator. If this function does not support iteration, returns nil; then call `Run` instead.

()

Source from the content-addressed store, hash-verified

52 // Calls a user function, returning a query result iterator.
53 // If this function does not support iteration, returns nil; then call `Run` instead.
54 Iterate() (sgbucket.QueryResultIterator, error)
55
56 // Calls a user function, returning the entire result.
57 // (If this is a N1QL query it will return all the result rows in an array, which is less efficient than iterating them, so try calling `Iterate` first.)

Callers 5

handleFunctionCallMethod · 0.65
handleFunctionMethod · 0.65
testUserQueriesCommonFunction · 0.65
testUserQueriesAsAdminFunction · 0.65
testUserQueriesAsUserFunction · 0.65

Implementers 2

n1qlInvocationdb/functions/n1ql_function.go
jsInvocationdb/functions/js_function.go

Calls

no outgoing calls

Tested by 3

testUserQueriesCommonFunction · 0.52
testUserQueriesAsAdminFunction · 0.52
testUserQueriesAsUserFunction · 0.52