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

Method DropRootObject

core/functions/root_object.go:171–176  ·  view source on GitHub ↗

DropRootObject implements the interface objinterface.Collection.

(ctx context.Context, identifier id.Id)

Source from the content-addressed store, hash-verified

169
170// DropRootObject implements the interface objinterface.Collection.
171func (pgf *Collection) DropRootObject(ctx context.Context, identifier id.Id) error {
172 if identifier.Section() != id.Section_Function {
173 return errors.Errorf(`function %s does not exist`, identifier.String())
174 }
175 return pgf.DropFunction(ctx, id.Function(identifier))
176}
177
178// GetFieldType implements the interface objinterface.Collection.
179func (pgf *Collection) GetFieldType(ctx context.Context, fieldName string) *pgtypes.DoltgresType {

Callers

nothing calls this directly

Calls 5

DropFunctionMethod · 0.95
FunctionTypeAlias · 0.92
SectionMethod · 0.80
ErrorfMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected