Load more people in the example script
This commit is contained in:
parent
1095dfc950
commit
a60bbb99ba
2 changed files with 7 additions and 1 deletions
|
@ -24,9 +24,12 @@ ghee init -k name ./people
|
|||
# Index the dataset by ID
|
||||
ghee idx -v -k id ./people ./people:id
|
||||
|
||||
# Index the dataset by state and ID
|
||||
# Index the dataset by state and ID, placing the index in the default path
|
||||
ghee idx -v -k state -k id ./people
|
||||
|
||||
# Add more people to the table and its indices
|
||||
ghee ins -v ./people < ../people.json
|
||||
|
||||
# Get the name of everybody from California
|
||||
ghee get -w state=CA -f name ./people
|
||||
|
||||
|
|
3
people.json
Normal file
3
people.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ "name": "Janella", "id": 3, "state": "FL" }
|
||||
{ "name": "Lilly", "id": 4, "state": "NM" }
|
||||
{ "name": "Darrel", "id": 5, "state": "MI" }
|
Loading…
Reference in a new issue