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

Function StoreYaml

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

StoreYaml stores struct fields to yaml document.

(target interface{}, yaml *yaml.Node, options StoreOptions)

Source from the content-addressed store, hash-verified

17
18// StoreYaml stores struct fields to yaml document.
19func StoreYaml(target interface{}, yaml *yaml.Node, options StoreOptions) error {
20 soft, err := NewSoftYaml(yaml)
21 if err != nil {
22 return err
23 }
24
25 return Store(target, soft, options)
26}
27
28// LoadJSON loads struct fields from json document.
29func LoadJSON(target interface{}, m map[string]interface{}, options LoadOptions) error {

Calls 2

NewSoftYamlFunction · 0.85
StoreFunction · 0.85