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

Method PutTable

core/rootvalue.go:619–627  ·  view source on GitHub ↗

PutTable implements the interface doltdb.RootValue.

(ctx context.Context, tName doltdb.TableName, table *doltdb.Table)

Source from the content-addressed store, hash-verified

617
618// PutTable implements the interface doltdb.RootValue.
619func (root *RootValue) PutTable(ctx context.Context, tName doltdb.TableName, table *doltdb.Table) (doltdb.RootValue, error) {
620 // TODO: modify owned sequences based on schema changes
621 tableRef, err := doltdb.RefFromNomsTable(ctx, table)
622 if err != nil {
623 return nil, err
624 }
625
626 return root.putTable(ctx, tName, tableRef)
627}
628
629// RemoveTables implements the interface doltdb.RootValue.
630func (root *RootValue) RemoveTables(

Callers

nothing calls this directly

Calls 1

putTableMethod · 0.95

Tested by

no test coverage detected