MCPcopy
hub / github.com/ory/hydra / QueryWithNetwork

Method QueryWithNetwork

persistence/sql/persister.go:111–113  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

109}
110
111func (p *BasePersister) QueryWithNetwork(ctx context.Context) *pop.Query {
112 return p.Connection(ctx).Where("nid = ?", p.NetworkID(ctx))
113}
114
115func (p *BasePersister) Connection(ctx context.Context) *pop.Connection {
116 return popx.GetConnection(ctx, p.c)

Calls 2

ConnectionMethod · 0.95
NetworkIDMethod · 0.95

Tested by 1

TestQueryWithNetworkMethod · 0.64