2024-08-15 08:19:50 +00:00
|
|
|
//@ts-ignore
|
2024-08-13 00:29:27 +00:00
|
|
|
import { encode } from "https://deno.land/x/msgpack@v1.2/mod.ts";
|
|
|
|
|
|
|
|
const Query = {
|
2024-08-20 01:36:41 +00:00
|
|
|
id: 9,
|
2024-08-15 13:04:44 +00:00
|
|
|
db: "database.sqlite",
|
|
|
|
commands: [
|
|
|
|
{ method: "In", args: ["data"] },
|
2024-08-13 00:29:27 +00:00
|
|
|
{
|
2024-08-15 13:04:44 +00:00
|
|
|
method: "Find",
|
|
|
|
args: [
|
|
|
|
{
|
|
|
|
a: 1,
|
|
|
|
b: {
|
|
|
|
$gt: 2,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2024-08-13 00:29:27 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
const encoded: Uint8Array = encode(Query);
|
2024-08-15 08:19:50 +00:00
|
|
|
//@ts-ignore
|
2024-08-15 13:04:44 +00:00
|
|
|
Deno.writeFileSync("proto_test.msgpack", encoded);
|