Description
Storing key in Couchbase, note the key ending in a single backslash:
echo world | cbc-create Hello\\ |
Hello\ Stored. CAS=0x4b55a7170100
|
Checking it is readable via K-V
cbc-cat Hello\\ |
Hello\ CAS=0x4b55a7170100, Flags=0x0. Size=6
|
world
|
Querying from view with --with-docs, note the key/docid being returned with the \ escaped.
cbc-view dev_webforms/test --params limit=10 --with-docs |
KEY: "Hello\\" |
VALUE: "true" |
DOCID: Hello\\
|
Hello\\ The key does not exist on the server (0xd)
|
View query complete!
|
Non-row data: {"total_rows":1,"rows":[ |
]
|
}
|
Outpoint from endpoint (Note backslashes are escaped as expected for JSON):
{{{"total_rows":1,"rows":[
|
{"id":"Hello\\","key":"Hello\\","value":"true"\}
|
]
|
}
|