DropRootObject implements the interface objinterface.Collection.
(ctx context.Context, identifier id.Id)
| 39 | |
| 40 | // DropRootObject implements the interface objinterface.Collection. |
| 41 | func (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. |
| 49 | func (pgc *Collection) GetFieldType(ctx context.Context, fieldName string) *pgtypes.DoltgresType { |