GetRunnerFromContext returns the sql.StatementRunner from within the context.
(ctx *sql.Context)
| 158 | |
| 159 | // GetRunnerFromContext returns the sql.StatementRunner from within the context. |
| 160 | func GetRunnerFromContext(ctx *sql.Context) (sql.StatementRunner, error) { |
| 161 | cv, err := getContextValues(ctx) |
| 162 | if err != nil { |
| 163 | return nil, err |
| 164 | } |
| 165 | return cv.runner, nil |
| 166 | } |
| 167 | |
| 168 | // GetDoltTableFromContext returns the Dolt table from the context. Returns nil if no table was found. |
| 169 | func GetDoltTableFromContext(ctx *sql.Context, tableName doltdb.TableName) (*doltdb.Table, error) { |
nothing calls this directly
no test coverage detected