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

Method DropRootObject

core/casts/root_object.go:41–46  ·  view source on GitHub ↗

DropRootObject implements the interface objinterface.Collection.

(ctx context.Context, identifier id.Id)

Source from the content-addressed store, hash-verified

39
40// DropRootObject implements the interface objinterface.Collection.
41func (pgc *Collection) DropRootObject(ctx context.Context, identifier id.Id) error {
42 if identifier.Section() != id.Section_Cast {
43 return errors.Errorf(`cast %s does not exist`, identifier.String())
44 }
45 return pgc.DropCast(ctx, id.Cast(identifier))
46}
47
48// GetFieldType implements the interface objinterface.Collection.
49func (pgc *Collection) GetFieldType(ctx context.Context, fieldName string) *pgtypes.DoltgresType {

Callers

nothing calls this directly

Calls 5

DropCastMethod · 0.95
CastTypeAlias · 0.92
SectionMethod · 0.80
ErrorfMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected