c08aa3e104
Signed-off-by: Anton Nesterov <anton@demiurg.io>
20 lines
417 B
TypeScript
20 lines
417 B
TypeScript
import { encode } from "https://deno.land/x/msgpack@v1.2/mod.ts";
|
|
|
|
const Query = {
|
|
"db": "database.sqlite",
|
|
"commands": [
|
|
{"method": "In", "args": ["data"]},
|
|
{
|
|
"method": "Find",
|
|
"args": [{
|
|
"a": 1,
|
|
"b": {
|
|
"$gt": 2,
|
|
},
|
|
}]
|
|
},
|
|
],
|
|
};
|
|
|
|
const encoded: Uint8Array = encode(Query);
|
|
Deno.writeFileSync("proto_test.msgpack", encoded); |