1 line
7.6 KiB
JSON
1 line
7.6 KiB
JSON
|
{"ast":null,"code":"import { Error, StmtResult, BatchResult, DescribeResult } from \"../shared/protobuf_decode.js\";\nexport const PipelineRespBody = {\n default() {\n return {\n baton: undefined,\n baseUrl: undefined,\n results: []\n };\n },\n 1(r, msg) {\n msg.baton = r.string();\n },\n 2(r, msg) {\n msg.baseUrl = r.string();\n },\n 3(r, msg) {\n msg.results.push(r.message(StreamResult));\n }\n};\nconst StreamResult = {\n default() {\n return {\n type: \"none\"\n };\n },\n 1(r) {\n return {\n type: \"ok\",\n response: r.message(StreamResponse)\n };\n },\n 2(r) {\n return {\n type: \"error\",\n error: r.message(Error)\n };\n }\n};\nconst StreamResponse = {\n default() {\n return {\n type: \"none\"\n };\n },\n 1(r) {\n return {\n type: \"close\"\n };\n },\n 2(r) {\n return r.message(ExecuteStreamResp);\n },\n 3(r) {\n return r.message(BatchStreamResp);\n },\n 4(r) {\n return {\n type: \"sequence\"\n };\n },\n 5(r) {\n return r.message(DescribeStreamResp);\n },\n 6(r) {\n return {\n type: \"store_sql\"\n };\n },\n 7(r) {\n return {\n type: \"close_sql\"\n };\n },\n 8(r) {\n return r.message(GetAutocommitStreamResp);\n }\n};\nconst ExecuteStreamResp = {\n default() {\n return {\n type: \"execute\",\n result: StmtResult.default()\n };\n },\n 1(r, msg) {\n msg.result = r.message(StmtResult);\n }\n};\nconst BatchStreamResp = {\n default() {\n return {\n type: \"batch\",\n result: BatchResult.default()\n };\n },\n 1(r, msg) {\n msg.result = r.message(BatchResult);\n }\n};\nconst DescribeStreamResp = {\n default() {\n return {\n type: \"describe\",\n result: DescribeResult.default()\n };\n },\n 1(r, msg) {\n msg.result = r.message(DescribeResult);\n }\n};\nconst GetAutocommitStreamResp = {\n default() {\n return {\n type: \"get_autocommit\",\n isAutocommit: false\n };\n },\n 1(r, msg) {\n msg.isAutocommit = r.bool();\n }\n};\nexport const CursorRespBody = {\n default() {\n return {\n baton: undefined,\n baseUrl: undefined\n };\n },\n 1(r, msg) {\n msg.baton = r.string();\n },\n 2(r, msg) {\n msg.baseUrl = r.string();\n }\n};","map":{"version":3,"names":["Error","StmtResult","BatchResult","DescribeResult","PipelineRespBody","default","baton","undefined","baseUrl","results","r","msg","string","push","message","StreamResult","type","response","StreamResponse","error","ExecuteStreamResp","BatchStreamResp","DescribeStreamResp","GetAutocommitStreamResp","result","isAutocommit","bool","CursorRespBody"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js"],"sourcesContent":["import { Error, StmtResult, BatchResult, DescribeResult } from \"../shared/protobuf_decode.js\";\nexport const PipelineRespBody = {\n default() { return { baton: undefined, baseUrl: undefined, results: [] }; },\n 1(r, msg) { msg.baton = r.string(); },\n 2(r, msg) { msg.baseUrl = r.string(); },\n 3(r, msg) { msg.results.push(r.message(StreamResult)); },\n};\nconst StreamResult = {\n default() { return { type: \"none\" }; },\n 1(r) { return { type: \"ok\", response: r.message(StreamResponse) }; },\n 2(r) { return { type: \"error\", error: r.message(Error) }; },\n};\nconst StreamResponse = {\n default() { return { type: \"none\" }; },\n 1(r) { return { type: \"close\" }; },\n 2(r) { return r.message(ExecuteStreamResp); },\n 3(r) { return r.message(BatchStreamResp); },\n 4(r) { return { type: \"sequence\" }; },\n 5(r) { return r.message(DescribeStreamResp); },\n 6(r) { return { type: \"store_sql\" }; },\n 7(r) { return { type: \"close_sql\" }; },\n 8(r) { return r.message(GetAutocommitStreamResp); },\n};\nconst ExecuteStreamResp = {\n default() { return { type: \"execute\", result: StmtResult.default() }; },\n 1(r, msg) { msg.result = r.message(StmtResult); },\n};\ncon
|