the-forest/client/node_modules/.cache/babel-loader/d458ef9c4dbeec23ff6b466d06a8cd7f5bf8f1f63f6900c1efe131aad08c5ef7.json
2024-09-17 20:35:18 -04:00

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 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: protobuf_decode_js_1.StmtResult.default() }; },\n 1(r, msg) { msg.result = r.message(protobuf_decode_js_1.StmtResult); },\n};\nconst BatchStreamResp = {\n default() { return { type: \"batch\", result: protobuf_decode_js_1.BatchResult.default() }; },\n 1(r, msg) { msg.result = r.message(protobuf_decode_js_1.BatchResult); },\n};\nconst DescribeStreamResp = {\n default() { return { type: \"describe\", result: protobuf_decode_js_1.DescribeResult.default() }; },\n 1(r, msg) { msg.result = r.message(protobuf_decode_js_1.DescribeResult); },\n};\nconst GetAutocommitStreamResp = {\n default() { return { type: \"get_autocommit\", isAutocommit: false }; },\n 1(r, msg) { msg.isAutocommit = r.bool(); },\n};\nexports.CursorRespBody = {\n default() { return { baton: undefined, baseUrl: undefined }; },\n 1(r, msg) { msg.baton = r.string(); },\n 2(r, msg) { msg.baseUrl = r.string(); },\n};\n"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,cAAc,GAAGF,OAAO,CAACG,gBAAgB,GAAG,KAAK,CAAC;AAC1D,MAAMC,oBAAoB,GAAGC,OAAO,CAAC,8BAA8B,CAAC;AACpEL,OAAO,CAACG,gBAAgB,GAAG;EACvBG,OAAOA,CAAA,EAAG;IAAE,OAAO;MAAEC,KAAK,EAAEC,SAAS;MAAEC,OAAO,EAAED,SAAS;MAAEE,OAAO,EAAE;IAAG,CAAC;EAAE,CAAC;EAC3E,CAAC,CAACC,CAAC,EAAEC,GAAG,EAAE;IAAEA,GAAG,CAACL,KAAK,GAAGI,CAAC,CAACE,MAAM,CAAC,CAAC;EAAE,CAAC;EACrC,CAAC,CAACF,CAAC,EAAEC,GAAG,EAAE;IAAEA,GAAG,CAACH,OAAO,GAAG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