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

Method PutRootObject

core/sequences/root_object.go:315–321  ·  view source on GitHub ↗

PutRootObject implements the interface objinterface.Collection.

(ctx context.Context, rootObj objinterface.RootObject)

Source from the content-addressed store, hash-verified

313
314// PutRootObject implements the interface objinterface.Collection.
315func (pgs *Collection) PutRootObject(ctx context.Context, rootObj objinterface.RootObject) error {
316 seq, ok := rootObj.(*Sequence)
317 if !ok {
318 return errors.Newf("invalid sequence root object: %T", rootObj)
319 }
320 return pgs.CreateSequence(ctx, seq)
321}
322
323// RenameRootObject implements the interface objinterface.Collection.
324func (pgs *Collection) RenameRootObject(ctx context.Context, oldName id.Id, newName id.Id) error {

Callers

nothing calls this directly

Calls 1

CreateSequenceMethod · 0.95

Tested by

no test coverage detected