PutTable implements the interface doltdb.RootValue.
(ctx context.Context, tName doltdb.TableName, table *doltdb.Table)
| 617 | |
| 618 | // PutTable implements the interface doltdb.RootValue. |
| 619 | func (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. |
| 630 | func (root *RootValue) RemoveTables( |