| 1 |
create schema xtest; |
| 2 |
|
| 3 |
command ok |
| 4 |
RUN use xtest |
| 5 |
|
| 6 |
0 rows affected |
| 7 |
RUN insert into mycoll (doc) values ('{"_id": "1", "name": "Joe1"}') |
| 8 |
|
| 9 |
1 rows affected |
| 10 |
RUN insert into mycoll (doc) values ('{"_id": "2", "name": "Joe2", "last_name": "Smith"}') |
| 11 |
|
| 12 |
1 rows affected |
| 13 |
RUN insert into mycoll (doc) values ('{"_id": "3", "name": "Joe2", "last_name": "Shmo"}') |
| 14 |
|
| 15 |
1 rows affected |
| 16 |
send Mysqlx.Crud.Delete { |
| 17 |
collection { |
| 18 |
name: "mycoll" |
| 19 |
schema: "" |
| 20 |
} |
| 21 |
data_model: DOCUMENT |
| 22 |
} |
| 23 |
|
| 24 |
|
| 25 |
3 rows affected |
| 26 |
send Mysqlx.Crud.Delete { |
| 27 |
collection { |
| 28 |
name: "mycoll" |
| 29 |
schema: "" |
| 30 |
} |
| 31 |
data_model: TABLE |
| 32 |
} |
| 33 |
|
| 34 |
|
| 35 |
0 rows affected |
| 36 |
send Mysqlx.Crud.Delete { |
| 37 |
collection { |
| 38 |
name: "" |
| 39 |
schema: "xtest" |
| 40 |
} |
| 41 |
data_model: DOCUMENT |
| 42 |
} |
| 43 |
|
| 44 |
Got expected error: Invalid name of table/collection (code 5113) |
| 45 |
send Mysqlx.Crud.Delete { |
| 46 |
collection { |
| 47 |
name: "" |
| 48 |
schema: "xtest" |
| 49 |
} |
| 50 |
data_model: TABLE |
| 51 |
} |
| 52 |
|
| 53 |
Got expected error: Invalid name of table/collection (code 5113) |
| 54 |
Mysqlx.Ok { |
| 55 |
msg: "bye!" |
| 56 |
} |
| 57 |
ok |