querier is a wrapper around the database store that performs authorization checks before returning data. All querier methods expect an authorization subject present in the context. If no subject is present, most methods will fail. Use WithAuthorizeContext to set the authorization subject in the con
| 110 | // Use WithAuthorizeContext to set the authorization subject in the context for |
| 111 | // the common user case. |
| 112 | type querier struct { |
| 113 | db database.Store |
| 114 | auth rbac.Authorizer |
| 115 | log slog.Logger |
| 116 | acs *atomic.Pointer[AccessControlStore] |
| 117 | } |
| 118 | |
| 119 | func New(db database.Store, authorizer rbac.Authorizer, logger slog.Logger, acs *atomic.Pointer[AccessControlStore]) database.Store { |
| 120 | // If the underlying db store is already a querier, return it. |
nothing calls this directly
no outgoing calls
no test coverage detected