Try to test get
which has been buggy lately....
This commit is contained in:
parent
09b8e7475d
commit
f0574a563b
3 changed files with 31 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
-[x] `ghee status ./people`: show how the ./people table has changed since last commit; using CoW snapshots
|
||||
-[ ] `ghee reset ./people gf037d2c98`: replace the current contents of the `./people` table to its state in commit gf037d2c98
|
||||
-[ ] `ghee restore ./people`: replace all changed files in `./people` with their versions in the most recent commit
|
||||
-[x] Test `get` on non-table? Whatever that bug is...
|
||||
-[ ] `init`: allow comma-separated compound keys
|
||||
-[ ] Existence predicates, e.g. `-w name` matches any record for which `name` is set
|
||||
-[ ] Virtual attribute `id` and attributes `id0` etc.
|
||||
|
|
|
@ -31,6 +31,9 @@ main() {
|
|||
$GHEE set -s name=Sofia -s id=1 -s state=WA ./people/Sofia
|
||||
$GHEE set -s name=Wulfrum -s id=0 -s state=CA ./people/Wulfrum
|
||||
|
||||
# Check how Ghee sees the files we just set up
|
||||
$GHEE get people
|
||||
|
||||
# Tell Ghee what key the data is indexed by
|
||||
$GHEE init -k name ./people
|
||||
|
||||
|
@ -43,7 +46,7 @@ main() {
|
|||
# Add more people to the table and its indices
|
||||
$GHEE ins -v ./people < ../../people.json
|
||||
|
||||
# Get all of ./people
|
||||
# Get all of ./people, seen as a table
|
||||
$GHEE get -a ./people
|
||||
|
||||
# # Get all of ./people without sorting in the walk of the folder hierarchy
|
||||
|
@ -81,6 +84,8 @@ main() {
|
|||
|
||||
mkdir ./empty
|
||||
$GHEE status ./empty
|
||||
$GHEE get empty
|
||||
$GHEE get -a empty
|
||||
}
|
||||
|
||||
btrfs() {
|
||||
|
|
|
@ -10,6 +10,16 @@
|
|||
+ /home/josh/Projects/Ghee/target/debug/ghee set -s name=Sandeep -s id=2 -s state=CA ./people/Sandeep
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee set -s name=Sofia -s id=1 -s state=WA ./people/Sofia
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee set -s name=Wulfrum -s id=0 -s state=CA ./people/Wulfrum
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee get people
|
||||
./people/Sandeep user.id 2
|
||||
./people/Sandeep user.name Sandeep
|
||||
./people/Sandeep user.state CA
|
||||
./people/Sofia user.id 1
|
||||
./people/Sofia user.name Sofia
|
||||
./people/Sofia user.state WA
|
||||
./people/Wulfrum user.id 0
|
||||
./people/Wulfrum user.name Wulfrum
|
||||
./people/Wulfrum user.state CA
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee init -k name ./people
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee idx -v -k id ./people ./people:id
|
||||
./people/Sofia -> ./people:id/1
|
||||
|
@ -81,6 +91,8 @@ Initialized ./people2/5
|
|||
+ mkdir ./empty
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee status ./empty
|
||||
No table found
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee get empty
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee get -a empty
|
||||
+ cd ..
|
||||
+ sudo umount ./ext4
|
||||
+ mkdir ./empty
|
||||
|
@ -96,6 +108,16 @@ No table found
|
|||
+ /home/josh/Projects/Ghee/target/debug/ghee set -s name=Sandeep -s id=2 -s state=CA ./people/Sandeep
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee set -s name=Sofia -s id=1 -s state=WA ./people/Sofia
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee set -s name=Wulfrum -s id=0 -s state=CA ./people/Wulfrum
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee get people
|
||||
./people/Sandeep user.id 2
|
||||
./people/Sandeep user.name Sandeep
|
||||
./people/Sandeep user.state CA
|
||||
./people/Sofia user.id 1
|
||||
./people/Sofia user.name Sofia
|
||||
./people/Sofia user.state WA
|
||||
./people/Wulfrum user.id 0
|
||||
./people/Wulfrum user.name Wulfrum
|
||||
./people/Wulfrum user.state CA
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee init -k name ./people
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee idx -v -k id ./people ./people:id
|
||||
./people/Sandeep -> ./people:id/2
|
||||
|
@ -167,6 +189,8 @@ Initialized ./people2/5
|
|||
+ mkdir ./empty
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee status ./empty
|
||||
No table found
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee get empty
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee get -a empty
|
||||
+ btrfs
|
||||
+ /home/josh/Projects/Ghee/target/debug/ghee status .
|
||||
No table found
|
||||
|
|
Loading…
Reference in a new issue