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