1 line
8.4 KiB
JSON
1 line
8.4 KiB
JSON
|
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CursorRespBody = exports.PipelineRespBody = void 0;\nconst protobuf_decode_js_1 = require(\"../shared/protobuf_decode.js\");\nexports.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(protobuf_decode_js_1.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: protobuf_decode_js_1.StmtResult.default()\n };\n },\n 1(r, msg) {\n msg.result = r.message(protobuf_decode_js_1.StmtResult);\n }\n};\nconst BatchStreamResp = {\n default() {\n return {\n type: \"batch\",\n result: protobuf_decode_js_1.BatchResult.default()\n };\n },\n 1(r, msg) {\n msg.result = r.message(protobuf_decode_js_1.BatchResult);\n }\n};\nconst DescribeStreamResp = {\n default() {\n return {\n type: \"describe\",\n result: protobuf_decode_js_1.DescribeResult.default()\n };\n },\n 1(r, msg) {\n msg.result = r.message(protobuf_decode_js_1.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};\nexports.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":["Object","defineProperty","exports","value","CursorRespBody","PipelineRespBody","protobuf_decode_js_1","require","default","baton","undefined","baseUrl","results","r","msg","string","push","message","StreamResult","type","response","StreamResponse","error","Error","ExecuteStreamResp","BatchStreamResp","DescribeStreamResp","GetAutocommitStreamResp","result","StmtResult","BatchResult","DescribeResult","isAutocommit","bool"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/@libsql/hrana-client/lib-cjs/http/protobuf_decode.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CursorRespBody = exports.PipelineRespBody = void 0;\nconst protobuf_decode_js_1 = require(\"../shared/protobuf_decode.js\");\nexports.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(protobuf_decode_js_1.Error) }; },\n};\nconst StreamResponse = {\n default() { return { type: \"none\" }; },\n 1(r) { return { type: \"close\" }; },\n 2(r) { return r.message(ExecuteStreamResp); },\n
|