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

Method CheckTable

server/auth/auth_handler.go:274–284  ·  view source on GitHub ↗

CheckTable implements the sql.AuthorizationHandler interface.

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

Source from the content-addressed store, hash-verified

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 {
275 if aqs == nil {
276 aqs = h.NewQueryState(ctx)
277 }
278 state := aqs.(AuthorizationQueryState)
279 if state.err != nil {
280 return state.err
281 }
282 // TODO: implement this
283 return nil
284}
285
286// dbName uses the current database from the context if a database is not specified, otherwise it returns the given
287// database name.

Callers

nothing calls this directly

Calls 1

NewQueryStateMethod · 0.95

Tested by

no test coverage detected