MCPcopy Index your code
hub / github.com/coder/coder / CountAIBridgeInterceptions

Method CountAIBridgeInterceptions

coderd/database/dbauthz/dbauthz.go:1799–1805  ·  view source on GitHub ↗
(ctx context.Context, arg database.CountAIBridgeInterceptionsParams)

Source from the content-addressed store, hash-verified

1797}
1798
1799func (q *querier) CountAIBridgeInterceptions(ctx context.Context, arg database.CountAIBridgeInterceptionsParams) (int64, error) {
1800 prep, err := prepareSQLFilter(ctx, q.auth, policy.ActionRead, rbac.ResourceAibridgeInterception.Type)
1801 if err != nil {
1802 return 0, xerrors.Errorf("(dev error) prepare sql filter: %w", err)
1803 }
1804 return q.db.CountAuthorizedAIBridgeInterceptions(ctx, arg, prep)
1805}
1806
1807func (q *querier) CountAIBridgeSessions(ctx context.Context, arg database.CountAIBridgeSessionsParams) (int64, error) {
1808 prep, err := prepareSQLFilter(ctx, q.auth, policy.ActionRead, rbac.ResourceAibridgeInterception.Type)

Callers

nothing calls this directly

Calls 3

prepareSQLFilterFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected