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

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};\nconst BatchStreamResp = {\n default() { return { type: \"batch\", result: BatchResult.default() }; },\n 1(r, msg) { msg.result = r.message(BatchResult); },\n};\nconst DescribeStreamResp = {\n default() { return { type: \"describe\", result: DescribeResult.default() }; },\n 1(r, msg) { msg.result = r.message(DescribeResult); },\n};\nconst GetAutocommitStreamResp = {\n default() { return { type: \"get_autocommit\", isAutocommit: false }; },\n 1(r, msg) { msg.isAutocommit = r.bool(); },\n};\nexport const 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,SAASA,KAAK,EAAEC,UAAU,EAAEC,WAAW,EAAEC,cAAc,QAAQ,8BAA8B;AAC7F,OAAO,MAAMC,gBAAgB,GAAG;EAC5BC,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,GAAGE,CAAC,CAACE,MAAM,CAAC,CAAC;EAAE,CAAC;EACvC,CAAC,CAACF,CAAC,EAAEC,GAAG,EAAE;IAAEA,GAAG,CAACF,OAAO,CAACI,IAAI,CAACH,CAAC,CAACI,OAAO,CAACC,YAAY,CAAC,CAAC;EAAE;AAC3D,CAAC;AACD,MAAMA,YAAY,GAAG;EACjBV,OAAOA,CAAA,EAAG;IAAE,OAAO;MAAEW,IAAI,EAAE;IAAO,CAAC;EAAE,CAAC;EACtC,CAAC,CAACN,CAAC,EAAE;IAAE,OAAO;MAAEM,IAAI,EAAE,IAAI;MAAEC,QAAQ,EAAEP,CAAC,CAACI,OAAO,CAACI,cAAc;IAAE,CAAC;EAAE,CAAC;EACpE,CAAC,CAACR,CAAC,EAAE;IAAE,OAAO;MAAEM,IAAI,EAAE,OAAO;MAAEG,KAAK,EAAET,CAAC,CAACI,OAAO,CA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