MCPcopy
hub / github.com/jmoiron/sqlx / StructScan

Method StructScan

sqlx.go:796–798  ·  view source on GitHub ↗

StructScan a single Row into dest.

(dest interface{})

Source from the content-addressed store, hash-verified

794
795// StructScan a single Row into dest.
796func (r *Row) StructScan(dest interface{}) error {
797 return r.scanAny(dest, true)
798}
799
800// SliceScan a row, returning a []interface{} with values similar to MapScan.
801// This function is primarily intended for use where the number of columns

Callers 11

TestNamedContextQueriesFunction · 0.45
TestNamedQueriesFunction · 0.45
TestEmbeddedStructsFunction · 0.45
TestNamedQueryFunction · 0.45
TestScanErrorFunction · 0.45
TestUsageFunction · 0.45
TestNamedQueryContextFunction · 0.45
TestScanErrorContextFunction · 0.45
TestUsageContextFunction · 0.45
TestConnFunction · 0.45

Calls 1

scanAnyMethod · 0.95

Tested by 11

TestNamedContextQueriesFunction · 0.36
TestNamedQueriesFunction · 0.36
TestEmbeddedStructsFunction · 0.36
TestNamedQueryFunction · 0.36
TestScanErrorFunction · 0.36
TestUsageFunction · 0.36
TestNamedQueryContextFunction · 0.36
TestScanErrorContextFunction · 0.36
TestUsageContextFunction · 0.36
TestConnFunction · 0.36