MCPcopy Create free account
hub / github.com/corestoreio/pkg / Load

Method Load

sql/dml/dbr.go:1075–1113  ·  view source on GitHub ↗

Load loads data from a query into an object. Load can load a single row or multiple-rows. It checks on top if ColumnMapper `s` implements io.Closer, to call the custom close function. This is useful for e.g. unlocking a mutex.

(ctx context.Context, s ColumnMapper, args ...any)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

GetMasterPosMethod · 0.45
withUpdateBinlogStartFunction · 0.45
withCheckBinlogRowFormatFunction · 0.45
CheckBinlogRowImageMethod · 0.45
TestWithLogger_SelectFunction · 0.45
TestWithLogger_UnionFunction · 0.45
TestWithLogger_WithCTEFunction · 0.45
TestColumnMap_QueryFunction · 0.45
TestColumnMap_PreparedFunction · 0.45
TestWith_LoadFunction · 0.45
BenchmarkSelectRows2007Function · 0.45
BenchmarkJackC_GoDBBenchFunction · 0.45

Calls 12

queryMethod · 0.95
pooledColumnMapGetFunction · 0.85
pooledBufferColumnMapPutFunction · 0.85
NextMethod · 0.80
StringMethod · 0.65
ErrorfMethod · 0.65
CloseMethod · 0.65
ScanMethod · 0.65
MapColumnsMethod · 0.65
DebugMethod · 0.45
ErrMethod · 0.45
Uint64Method · 0.45

Tested by 15

TestWithLogger_SelectFunction · 0.36
TestWithLogger_UnionFunction · 0.36
TestWithLogger_WithCTEFunction · 0.36
TestColumnMap_QueryFunction · 0.36
TestColumnMap_PreparedFunction · 0.36
TestWith_LoadFunction · 0.36
BenchmarkSelectRows2007Function · 0.36
BenchmarkJackC_GoDBBenchFunction · 0.36
TestDBR_PrepareFunction · 0.36
validateInsertingBarackFunction · 0.36
TestUnion_LoadFunction · 0.36