MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / extractValueForSQL

Function extractValueForSQL

internal/filter/helpers.go:25–30  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

23}
24
25func extractValueForSQL(value interface{}) interface{} {
26 if tsVal, ok := value.(TimestampValue); ok {
27 return tsVal.Time
28 }
29 return value
30}
31
32func buildContainmentJSON(key string, value interface{}) ([]byte, error) {
33 m := map[string]interface{}{key: value}

Callers 4

buildBalanceIdConditionFunction · 0.85
buildIndicatorConditionFunction · 0.85
buildStandardConditionFunction · 0.85
buildJSONPathConditionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected