MCPcopy Index your code
hub / github.com/Masterminds/structable / Load

Method Load

structable.go:215–215  ·  view source on GitHub ↗

Loads the entire Record using the value of the PRIMARY_KEY(s) This will only fetch columns that are mapped on the bound Record. But you can think of it as doing something like this: SELECT * FROM bound_table WHERE id=? LIMIT 1 And then mapping the result to the currently bound Record.

()

Source from the content-addressed store, hash-verified

213 //
214 // And then mapping the result to the currently bound Record.
215 Load() error
216 // Load by a WHERE-like clause. See Squirrel's Where(pred, args)
217 LoadWhere(interface{}, ...interface{}) error
218}

Callers 4

TestLoadFunction · 0.65
TestPlainStructLoadFunction · 0.65
LoadMethod · 0.65

Implementers 1

DbRecorderstructable.go

Calls

no outgoing calls

Tested by 3

TestLoadFunction · 0.52
TestPlainStructLoadFunction · 0.52