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

Method GetTable

core/rootvalue.go:383–395  ·  view source on GitHub ↗

GetTable implements the interface doltdb.RootValue.

(ctx context.Context, tName doltdb.TableName)

Source from the content-addressed store, hash-verified

381
382// GetTable implements the interface doltdb.RootValue.
383func (root *RootValue) GetTable(ctx context.Context, tName doltdb.TableName) (*doltdb.Table, bool, error) {
384 tableMap, err := root.getTableMap(ctx, tName.Schema)
385 if err != nil {
386 return nil, false, err
387 }
388
389 addr, err := tableMap.Get(ctx, tName.Name)
390 if err != nil {
391 return nil, false, err
392 }
393
394 return doltdb.GetTable(ctx, root, addr)
395}
396
397// GetTableHash implements the interface doltdb.RootValue.
398func (root *RootValue) GetTableHash(ctx context.Context, tName doltdb.TableName) (hash.Hash, bool, error) {

Callers 10

GetTableSchemaHashMethod · 0.95
IterTablesMethod · 0.80
GetDoltTableFromContextFunction · 0.80
BeforeTableModifyColumnFunction · 0.80
AfterTableDropColumnFunction · 0.80
AfterTableRenameColumnFunction · 0.80
AfterTableRenameFunction · 0.80
BeforeTableAddColumnFunction · 0.80
AfterTableAddColumnFunction · 0.80

Calls 2

getTableMapMethod · 0.95
GetMethod · 0.45

Tested by

no test coverage detected