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

Function GetRootFromContext

core/context.go:87–89  ·  view source on GitHub ↗

GetRootFromContext returns the working session's root from the context, along with the session.

(ctx *sql.Context)

Source from the content-addressed store, hash-verified

85
86// GetRootFromContext returns the working session's root from the context, along with the session.
87func GetRootFromContext(ctx *sql.Context) (*dsess.DoltSession, *RootValue, error) {
88 return getRootFromContextForDatabase(ctx, "")
89}
90
91// getRootFromContextForDatabase returns the working session's root from the context for a specific database, along with the session.
92func getRootFromContextForDatabase(ctx *sql.Context, database string) (*dsess.DoltSession, *RootValue, error) {

Callers 10

ValidateCreateSchemaFunction · 0.92
BeforeTableModifyColumnFunction · 0.92
AfterTableDropColumnFunction · 0.92
AfterTableRenameColumnFunction · 0.92
AfterTableRenameFunction · 0.92
BeforeTableAddColumnFunction · 0.92
AfterTableAddColumnFunction · 0.92
GetCurrentSchemaFunction · 0.85
GetDoltTableFromContextFunction · 0.85

Calls 1

Tested by

no test coverage detected