convert YAML to relations
Expected structure is:
map:
key = relation name
value = sequence of maps (records) where:
key = attribute name
value = attribute value
Example:
--------
fruit:
- id: 1
name: cherry
- id: 2
name: apple
- id: 3
name: plum
empty:
# this relation has no attributes and will be ignored
sparse:
- a: aaa
b: bbb
c: ccc
- a: AAA
b: BBB
- c: C
d: D
e: E
a: A
f: F
- c: CCC
--------
Not yet supported:
--------
my_relation_with_metadata:
attribute-metadata:
- name: a
type: string
- name: b
type: boolean
record:
- a: a
- b: true
--------
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.cnd.makeproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/make-project/1">
<name>relpipe-in-yaml.cpp</name>
<c-extensions/>
<cpp-extensions>cpp</cpp-extensions>
<header-extensions>h</header-extensions>
<sourceEncoding>UTF-8</sourceEncoding>
<make-dep-projects/>
<sourceRootList>
<sourceRootElem>.</sourceRootElem>
</sourceRootList>
<confList>
<confElem>
<name>Debug</name>
<type>0</type>
</confElem>
<confElem>
<name>Release</name>
<type>0</type>
</confElem>
</confList>
<formatting>
<project-formatting-style>false</project-formatting-style>
</formatting>
</data>
</configuration>
</project>