MCPcopy Create free account
hub / github.com/cloudwan/gohan / listContextHelper

Function listContextHelper

db/sql/sql.go:940–952  ·  view source on GitHub ↗
(s *schema.Schema, filter transaction.Filter, options *transaction.ViewOptions, pg *pagination.Paginator)

Source from the content-addressed store, hash-verified

938}
939
940func listContextHelper(s *schema.Schema, filter transaction.Filter, options *transaction.ViewOptions, pg *pagination.Paginator) *selectContext {
941 sc := &selectContext{
942 schema: s,
943 filter: filter,
944 join: true,
945 paginator: pg,
946 }
947 if options != nil {
948 sc.fields = normFields(options.Fields, s)
949 sc.join = options.Details
950 }
951 return sc
952}
953
954func shouldJoin(policy schema.LockPolicy) bool {
955 switch policy {

Callers 2

ListContextMethod · 0.85
ListContextMethod · 0.85

Calls 1

normFieldsFunction · 0.85

Tested by

no test coverage detected