MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetRunnerFromContext

Function GetRunnerFromContext

core/context.go:160–166  ·  view source on GitHub ↗

GetRunnerFromContext returns the sql.StatementRunner from within the context.

(ctx *sql.Context)

Source from the content-addressed store, hash-verified

158
159// GetRunnerFromContext returns the sql.StatementRunner from within the context.
160func 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.
169func GetDoltTableFromContext(ctx *sql.Context, tableName doltdb.TableName) (*doltdb.Table, error) {

Callers

nothing calls this directly

Calls 1

getContextValuesFunction · 0.85

Tested by

no test coverage detected