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

Interface Saver

structable.go:220–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220type Saver interface {
221 // Insert inserts the bound Record into the bound table.
222 Insert() error
223
224 // Update updates all of the fields on the bound Record based on the PRIMARY_KEY fields.
225 //
226 // Essentially, it does something like this:
227 // UPDATE bound_table SET every=?, field=?, but=?, keys=? WHERE primary_key=?
228 Update() error
229
230 // Deletes a Record based on its PRIMARY_KEY(s).
231 Delete() error
232}
233
234// Haecceity implements John Duns Scotus.
235//

Callers 18

insertStdMethod · 0.65
insertPgMethod · 0.65
TestInsertFunction · 0.65
TestPlainStructInsertFunction · 0.65
mainFunction · 0.65
InsertMethod · 0.65
UpdateMethod · 0.65
TestUpdateFunction · 0.65
TestPlainStructUpdateFunction · 0.65
mainFunction · 0.65

Implementers 2

DbRecorderstructable.go
Fenceexample/fence.go

Calls

no outgoing calls

Tested by

no test coverage detected