Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tutorial-durable/15-map-coord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# === get ===
# /m·[1,2] float32:6.28000020980835
# /m·[9,9] (nil)
# === obj vs coord ===
# === 命名成员 vs 坐标成员 ===
# [0] 2
# x 1
# /end
Expand All @@ -32,8 +32,8 @@ $KV list /m· --kind --showext=false
echo "=== get ==="
$KV get '/m·[1,2]' '/m·[9,9]'

echo "=== obj vs coord ==="
$KV set /h· 'object:'
echo "=== 命名成员 vs 坐标成员 ==="
$KV set /h· 'map[0]:' # 显式声明容器(memhead),并建 memindex;object kind 已移除
$KV set /h·x 'int:1'
$KV set '/h·[0]' 'int:2'
$KV list /h· --kind=false --showext=false
1 change: 1 addition & 0 deletions tutorial-durable/16-geo-coord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ KV="$HOME/.local/bin/kvspace"
$KV deltree /geo/

echo "=== geo list ==="
$KV set /geo· 'map[0]:' # 先声明容器(memhead),否则成员写被拒
$KV set '/geo·[39.9,116.4]' 'string:Beijing'
$KV set '/geo·[31.23,121.47]' 'string:Shanghai'
$KV list /geo· --kind --showext=false
Expand Down
2 changes: 1 addition & 1 deletion tutorial-durable/17-cp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $KV get /dst/one

# cpdir 复制 · 成员容器(base + memindex + 成员)
echo "=== cpdir memindex container ==="
$KV set /p· index:
$KV set /p· 'map[0]:' # 容器值(memhead)+ memindex;index: 只建 memindex,成员写会被拒
$KV set /p·x float:3.14
$KV set /p·y int:42
$KV cpdir /p /q
Expand Down
Loading