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

Method HasRootObject

core/functions/root_object.go:219–224  ·  view source on GitHub ↗

HasRootObject implements the interface objinterface.Collection.

(ctx context.Context, identifier id.Id)

Source from the content-addressed store, hash-verified

217
218// HasRootObject implements the interface objinterface.Collection.
219func (pgf *Collection) HasRootObject(ctx context.Context, identifier id.Id) (bool, error) {
220 if identifier.Section() != id.Section_Function {
221 return false, nil
222 }
223 return pgf.HasFunction(ctx, id.Function(identifier)), nil
224}
225
226// IDToTableName implements the interface objinterface.Collection.
227func (pgf *Collection) IDToTableName(identifier id.Id) doltdb.TableName {

Callers

nothing calls this directly

Calls 3

HasFunctionMethod · 0.95
FunctionTypeAlias · 0.92
SectionMethod · 0.80

Tested by

no test coverage detected