1 # Save a single key-value pair
2 kdb set user/tests/yamlsmith 'Pattern Against User'
4 # Only export the value
5 kdb export user/tests/yamlsmith yamlsmith
6 #> "Pattern Against User"
9 kdb rm -r user/tests/yamlsmith
1 # Add some key-value pairs to the database
2 kdb set user/tests/yamlsmith/key value
3 kdb set user/tests/yamlsmith/time 'will die and love will burrow it'
4 kdb set user/tests/yamlsmith/level1/one 'I'
5 kdb set user/tests/yamlsmith/level1/two 'II'
7 # Export data using YAML Smith
8 kdb export user/tests/yamlsmith yamlsmith
17 #> "will die and love will burrow it"
20 kdb rm -r user/tests/yamlsmith
1 kdb set user/tests/yamlsmith/low
2 kdb set user/tests/yamlsmith/low/#0 'You bought some sweet, sweet, sweet, sweet sunflowers'
3 kdb set user/tests/yamlsmith/low/#1 'And gave them'
4 kdb set user/tests/yamlsmith/low/#2 'To the night'
6 kdb export user/tests/yamlsmith yamlsmith
9 #> "You bought some sweet, sweet, sweet, sweet sunflowers"
16 kdb rm -r user/tests/yamlsmith