MCPcopy
hub / github.com/ent/ent / Context

Method Context

dialect/sql/builder.go:1718–1723  ·  view source on GitHub ↗

Context returns the Selector context or Background if nil.

()

Source from the content-addressed store, hash-verified

1716// Context returns the Selector context or Background
1717// if nil.
1718func (s *Selector) Context() context.Context {
1719 if s.ctx != nil {
1720 return s.ctx
1721 }
1722 return context.Background()
1723}
1724
1725// Select returns a new selector for the `SELECT` statement.
1726//

Callers 15

SchemaCmdFunction · 0.80
TestMySQLFunction · 0.80
HasChildFunction · 0.80
HasChildWithFunction · 0.80
HasParentFunction · 0.80
HasParentWithFunction · 0.80
HasUserFunction · 0.80
HasUserWithFunction · 0.80
HasFriendFunction · 0.80
HasFriendWithFunction · 0.80
HasPetsFunction · 0.80
HasPetsWithFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestMySQLFunction · 0.64
TestBuilderContextFunction · 0.64