| 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: "mycol" |
| 19 |
schema: "xtest" |
| 20 |
} |
| 21 |
data_model: DOCUMENT |
| 22 |
criteria { |
| 23 |
type: OPERATOR |
| 24 |
operator { |
| 25 |
name: "in" |
| 26 |
param { |
| 27 |
type: IDENT |
| 28 |
identifier { |
| 29 |
document_path { |
| 30 |
type: MEMBER |
| 31 |
value: "_id" |
| 32 |
} |
| 33 |
} |
| 34 |
} |
| 35 |
param { |
| 36 |
type: LITERAL |
| 37 |
literal { |
| 38 |
type: V_OCTETS |
| 39 |
v_octets { |
| 40 |
value: "1" |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
param { |
| 45 |
type: LITERAL |
| 46 |
literal { |
| 47 |
type: V_OCTETS |
| 48 |
v_octets { |
| 49 |
value: "3" |
| 50 |
} |
| 51 |
} |
| 52 |
} |
| 53 |
} |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
Mysqlx.Error { |
| 58 |
severity: ERROR |
| 59 |
code: 1146 |
| 60 |
msg: "Table \'xtest.mycol\' doesn\'t exist" |
| 61 |
sql_state: "42S02" |
| 62 |
} |
| 63 |
|
| 64 |
Mysqlx.Ok { |
| 65 |
msg: "bye!" |
| 66 |
} |
| 67 |
ok |