CheckDatabase implements the sql.AuthorizationHandler interface.
(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string)
| 246 | |
| 247 | // CheckDatabase implements the sql.AuthorizationHandler interface. |
| 248 | func (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. |
| 261 | func (h *AuthorizationHandler) CheckSchema(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string, schemaName string) error { |
nothing calls this directly
no test coverage detected