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