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

Interface Haecceity

structable.go:238–246  ·  view source on GitHub ↗

Haecceity implements John Duns Scotus. Actually, it is responsible for testing whether a thing exists, and is what we think it is.

Source from the content-addressed store, hash-verified

236// Actually, it is responsible for testing whether a thing exists, and is
237// what we think it is.
238type Haecceity interface {
239 // Exists verifies that a thing exists and is of this type.
240 // This uses the PRIMARY_KEY to verify that a record exists.
241 Exists() (bool, error)
242 // ExistsWhere verifies that a thing exists and is of the expected type.
243 // It takes a WHERE clause, and it needs to gaurantee that at least one
244 // record matches. It need not assure that *only* one item exists.
245 ExistsWhere(interface{}, ...interface{}) (bool, error)
246}
247
248// Implements the Recorder interface, and stores data in a DB.
249type DbRecorder struct {

Callers 5

ExistsMethod · 0.65
TestExistsFunction · 0.65
TestPlainStructExistsFunction · 0.65
HasMethod · 0.65

Implementers 1

DbRecorderstructable.go

Calls

no outgoing calls

Tested by

no test coverage detected