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

Method Update

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

Update updates all of the fields on the bound Record based on the PRIMARY_KEY fields. Essentially, it does something like this: UPDATE bound_table SET every=?, field=?, but=?, keys=? WHERE primary_key=?

()

Source from the content-addressed store, hash-verified

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

Callers 6

UpdateMethod · 0.65
TestUpdateFunction · 0.65
TestPlainStructUpdateFunction · 0.65
mainFunction · 0.65
UpdateMethod · 0.65

Implementers 2

DbRecorderstructable.go
Fenceexample/fence.go

Calls

no outgoing calls

Tested by 3

TestUpdateFunction · 0.52
TestPlainStructUpdateFunction · 0.52