HandleAuthNode implements the sql.AuthorizationHandler interface.
(ctx *sql.Context, aqs sql.AuthorizationQueryState, node sql.AuthorizationCheckerNode)
| 233 | |
| 234 | // HandleAuthNode implements the sql.AuthorizationHandler interface. |
| 235 | func (h *AuthorizationHandler) HandleAuthNode(ctx *sql.Context, aqs sql.AuthorizationQueryState, node sql.AuthorizationCheckerNode) error { |
| 236 | if aqs == nil { |
| 237 | aqs = h.NewQueryState(ctx) |
| 238 | } |
| 239 | state := aqs.(AuthorizationQueryState) |
| 240 | if state.err != nil { |
| 241 | return state.err |
| 242 | } |
| 243 | // TODO: implement this |
| 244 | return nil |
| 245 | } |
| 246 | |
| 247 | // CheckDatabase implements the sql.AuthorizationHandler interface. |
| 248 | func (h *AuthorizationHandler) CheckDatabase(ctx *sql.Context, aqs sql.AuthorizationQueryState, dbName string) error { |
nothing calls this directly
no test coverage detected