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

Method CheckDatabase

server/auth/auth_handler.go:248–258  ·  view source on GitHub ↗

CheckDatabase implements the sql.AuthorizationHandler interface.

(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string)

Source from the content-addressed store, hash-verified

246
247// CheckDatabase implements the sql.AuthorizationHandler interface.
248func (h *AuthorizationHandler) CheckDatabase(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string) error {
249 if aqs == nil {
250 aqs = h.NewQueryState(ctx)
251 }
252 state := aqs.(AuthorizationQueryState)
253 if state.err != nil {
254 return state.err
255 }
256 // TODO: implement this
257 return nil
258}
259
260// CheckSchema implements the sql.AuthorizationHandler interface.
261func (h *AuthorizationHandler) CheckSchema(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string, schemaName string) error {

Callers

nothing calls this directly

Calls 1

NewQueryStateMethod · 0.95

Tested by

no test coverage detected