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

Method CheckSchema

server/auth/auth_handler.go:261–271  ·  view source on GitHub ↗

CheckSchema implements the sql.AuthorizationHandler interface.

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

Source from the content-addressed store, hash-verified

259
260// CheckSchema implements the sql.AuthorizationHandler interface.
261func (h *AuthorizationHandler) CheckSchema(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string, schemaName string) error {
262 if aqs == nil {
263 aqs = h.NewQueryState(ctx)
264 }
265 state := aqs.(AuthorizationQueryState)
266 if state.err != nil {
267 return state.err
268 }
269 // TODO: implement this
270 return nil
271}
272
273// CheckTable implements the sql.AuthorizationHandler interface.
274func (h *AuthorizationHandler) CheckTable(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string, schemaName string, tableName string) error {

Callers

nothing calls this directly

Calls 1

NewQueryStateMethod · 0.95

Tested by

no test coverage detected