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

Interface Loader

structable.go:207–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207type Loader interface {
208 // Loads the entire Record using the value of the PRIMARY_KEY(s)
209 // This will only fetch columns that are mapped on the bound Record. But you can think of it
210 // as doing something like this:
211 //
212 // SELECT * FROM bound_table WHERE id=? LIMIT 1
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}
219
220type Saver interface {
221 // Insert inserts the bound Record into the bound table.

Callers 9

TestLoadFunction · 0.65
TestPlainStructLoadFunction · 0.65
LoadMethod · 0.65
TestLoadWhereFunction · 0.65
TestPlainStructLoadWhereFunction · 0.65
LoadByNameMethod · 0.65
LoadGeopointMethod · 0.65

Implementers 1

DbRecorderstructable.go

Calls

no outgoing calls

Tested by

no test coverage detected