MCPcopy Create free account
hub / github.com/postgres-ai/database-lab-engine / StoreJSON

Function StoreJSON

engine/pkg/util/projection/helpers.go:35–38  ·  view source on GitHub ↗

StoreJSON stores struct fields to json document.

(target interface{}, m map[string]interface{}, options StoreOptions)

Source from the content-addressed store, hash-verified

33
34// StoreJSON stores struct fields to json document.
35func StoreJSON(target interface{}, m map[string]interface{}, options StoreOptions) error {
36 soft := NewSoftJSON(m)
37 return Store(target, soft, options)
38}

Callers 2

TestStoreJsonFunction · 0.85
TestStoreJsonNullFunction · 0.85

Calls 2

NewSoftJSONFunction · 0.85
StoreFunction · 0.85

Tested by 2

TestStoreJsonFunction · 0.68
TestStoreJsonNullFunction · 0.68