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

Method GetRootObject

core/functions/root_object.go:210–216  ·  view source on GitHub ↗

GetRootObject implements the interface objinterface.Collection.

(ctx context.Context, identifier id.Id)

Source from the content-addressed store, hash-verified

208
209// GetRootObject implements the interface objinterface.Collection.
210func (pgf *Collection) GetRootObject(ctx context.Context, identifier id.Id) (objinterface.RootObject, bool, error) {
211 if identifier.Section() != id.Section_Function {
212 return nil, false, nil
213 }
214 f, err := pgf.GetFunction(ctx, id.Function(identifier))
215 return f, err == nil && f.ID.IsValid(), err
216}
217
218// HasRootObject implements the interface objinterface.Collection.
219func (pgf *Collection) HasRootObject(ctx context.Context, identifier id.Id) (bool, error) {

Callers

nothing calls this directly

Calls 4

GetFunctionMethod · 0.95
FunctionTypeAlias · 0.92
SectionMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected