MCPcopy Create free account
hub / github.com/dolthub/doltgresql / HandleAuthNode

Method HandleAuthNode

server/auth/auth_handler.go:235–245  ·  view source on GitHub ↗

HandleAuthNode implements the sql.AuthorizationHandler interface.

(ctx *sql.Context, aqs sql.AuthorizationQueryState, node sql.AuthorizationCheckerNode)

Source from the content-addressed store, hash-verified

233
234// HandleAuthNode implements the sql.AuthorizationHandler interface.
235func (h *AuthorizationHandler) HandleAuthNode(ctx *sql.Context, aqs sql.AuthorizationQueryState, node sql.AuthorizationCheckerNode) error {
236 if aqs == nil {
237 aqs = h.NewQueryState(ctx)
238 }
239 state := aqs.(AuthorizationQueryState)
240 if state.err != nil {
241 return state.err
242 }
243 // TODO: implement this
244 return nil
245}
246
247// CheckDatabase implements the sql.AuthorizationHandler interface.
248func (h *AuthorizationHandler) CheckDatabase(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string) error {

Callers

nothing calls this directly

Calls 1

NewQueryStateMethod · 0.95

Tested by

no test coverage detected