©2015 -
COUCHBASE CRUD OPERATIONS USING CBC -
cbc rm -
[couchbas@lxnode4 ~]$ cbc rm -
emp_1234 Deleted. CAS=0x100361ff28d2b14
[couchbas@lxnode4 ~]$
cbc n1ql -
[couchbas@lxnode4 ~]$ cbc n1ql -
Encoded query: {"statement":"DELETE FROM CRUD_Lab USE KEYS \"emp_1234\""}
** N1QL Response finished
{
"requestID": "9c40f2c8-
"signature": null,
"results": [
],
"status": "success",
"metrics": {
"elapsedTime": "69.758563ms",
"executionTime": "68.938422ms",
"resultCount": 0,
"resultSize": 0
}
}
[couchbas@lxnode4 ~]$
cbc n1ql -
[couchbas@lxnode4 ~]$ cbc n1ql -
Encoded query: {"statement":"DELETE FROM CRUD_Lab c WHERE c.ename = \"KYLE\" RETURNING c.empno"}
{
"empno": 1234
},
** N1QL Response finished
{
"requestID": "5567a5a3-
"signature": {
"empno": "json"
},
"results": [
],
"status": "success",
"metrics": {
"elapsedTime": "19.803503ms",
"executionTime": "19.723635ms",
"resultCount": 1,
"resultSize": 37,
"mutationCount": 1
}
}
[couchbas@lxnode4 ~]$