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

1 line
15 KiB
JSON

{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DescribeResult = exports.CursorEntry = exports.BatchResult = exports.StmtResult = exports.Error = void 0;\nexports.Error = {\n default() {\n return {\n message: \"\",\n code: undefined\n };\n },\n 1(r, msg) {\n msg.message = r.string();\n },\n 2(r, msg) {\n msg.code = r.string();\n }\n};\nexports.StmtResult = {\n default() {\n return {\n cols: [],\n rows: [],\n affectedRowCount: 0,\n lastInsertRowid: undefined\n };\n },\n 1(r, msg) {\n msg.cols.push(r.message(Col));\n },\n 2(r, msg) {\n msg.rows.push(r.message(Row));\n },\n 3(r, msg) {\n msg.affectedRowCount = Number(r.uint64());\n },\n 4(r, msg) {\n msg.lastInsertRowid = r.sint64();\n }\n};\nconst Col = {\n default() {\n return {\n name: undefined,\n decltype: undefined\n };\n },\n 1(r, msg) {\n msg.name = r.string();\n },\n 2(r, msg) {\n msg.decltype = r.string();\n }\n};\nconst Row = {\n default() {\n return [];\n },\n 1(r, msg) {\n msg.push(r.message(Value));\n }\n};\nexports.BatchResult = {\n default() {\n return {\n stepResults: new Map(),\n stepErrors: new Map()\n };\n },\n 1(r, msg) {\n const [key, value] = r.message(BatchResultStepResult);\n msg.stepResults.set(key, value);\n },\n 2(r, msg) {\n const [key, value] = r.message(BatchResultStepError);\n msg.stepErrors.set(key, value);\n }\n};\nconst BatchResultStepResult = {\n default() {\n return [0, exports.StmtResult.default()];\n },\n 1(r, msg) {\n msg[0] = r.uint32();\n },\n 2(r, msg) {\n msg[1] = r.message(exports.StmtResult);\n }\n};\nconst BatchResultStepError = {\n default() {\n return [0, exports.Error.default()];\n },\n 1(r, msg) {\n msg[0] = r.uint32();\n },\n 2(r, msg) {\n msg[1] = r.message(exports.Error);\n }\n};\nexports.CursorEntry = {\n default() {\n return {\n type: \"none\"\n };\n },\n 1(r) {\n return r.message(StepBeginEntry);\n },\n 2(r) {\n return r.message(StepEndEntry);\n },\n 3(r) {\n return r.message(StepErrorEntry);\n },\n 4(r) {\n return {\n type: \"row\",\n row: r.message(Row)\n };\n },\n 5(r) {\n return {\n type: \"error\",\n error: r.message(exports.Error)\n };\n }\n};\nconst StepBeginEntry = {\n default() {\n return {\n type: \"step_begin\",\n step: 0,\n cols: []\n };\n },\n 1(r, msg) {\n msg.step = r.uint32();\n },\n 2(r, msg) {\n msg.cols.push(r.message(Col));\n }\n};\nconst StepEndEntry = {\n default() {\n return {\n type: \"step_end\",\n affectedRowCount: 0,\n lastInsertRowid: undefined\n };\n },\n 1(r, msg) {\n msg.affectedRowCount = r.uint32();\n },\n 2(r, msg) {\n msg.lastInsertRowid = r.uint64();\n }\n};\nconst StepErrorEntry = {\n default() {\n return {\n type: \"step_error\",\n step: 0,\n error: exports.Error.default()\n };\n },\n 1(r, msg) {\n msg.step = r.uint32();\n },\n 2(r, msg) {\n msg.error = r.message(exports.Error);\n }\n};\nexports.DescribeResult = {\n default() {\n return {\n params: [],\n cols: [],\n isExplain: false,\n isReadonly: false\n };\n },\n 1(r, msg) {\n msg.params.push(r.message(DescribeParam));\n },\n 2(r, msg) {\n msg.cols.push(r.message(DescribeCol));\n },\n 3(r, msg) {\n msg.isExplain = r.bool();\n },\n 4(r, msg) {\n msg.isReadonly = r.bool();\n }\n};\nconst DescribeParam = {\n default() {\n return {\n name: undefined\n };\n },\n 1(r, msg) {\n msg.name = r.string();\n }\n};\nconst DescribeCol = {\n default() {\n return {\n name: \"\",\n decltype: undefined\n };\n },\n 1(r, msg) {\n msg.name = r.string();\n },\n 2(r, msg) {\n msg.decltype = r.string();\n }\n};\nconst Value = {\n default() {\n return undefined;\n },\n 1(r) {\n return null;\n },\n 2(r) {\n return r.sint64();\n },\n 3(r) {\n return r.double();\n },\n 4(r) {\n return r.string();\n },\n 5(r) {\n return r.bytes();\n }\n};","map":{"version":3,"names":["Object","defineProperty","exports","value","DescribeResult","CursorEntry","BatchResult","StmtResult","Error","default","message","code","undefined","r","msg","string","cols","rows","affectedRowCount","lastInsertRowid","push","Col","Row","Number","uint64","sint64","name","decltype","Value","stepResults","Map","stepErrors","key","BatchResultStepResult","set","BatchResultStepError","uint32","type","StepBeginEntry","StepEndEntry","StepErrorEntry","row","error","step","params","isExplain","isReadonly","DescribeParam","DescribeCol","bool","double","bytes"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_decode.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DescribeResult = exports.CursorEntry = exports.BatchResult = exports.StmtResult = exports.Error = void 0;\nexports.Error = {\n default() { return { message: \"\", code: undefined }; },\n 1(r, msg) { msg.message = r.string(); },\n 2(r, msg) { msg.code = r.string(); },\n};\nexports.StmtResult = {\n default() {\n return {\n cols: [],\n rows: [],\n affectedRowCount: 0,\n lastInsertRowid: undefined,\n };\n },\n 1(r, msg) { msg.cols.push(r.message(Col)); },\n 2(r, msg) { msg.rows.push(r.message(Row)); },\n 3(r, msg) { msg.affectedRowCount = Number(r.uint64()); },\n 4(r, msg) { msg.lastInsertRowid = r.sint64(); },\n};\nconst Col = {\n default() { return { name: undefined, decltype: undefined }; },\n 1(r, msg) { msg.name = r.string(); },\n 2(r, msg) { msg.decltype = r.string(); },\n};\nconst Row = {\n default() { return []; },\n 1(r, msg) { msg.push(r.message(Value)); },\n};\nexports.BatchResult = {\n default() { return { stepResults: new Map(), stepErrors: new Map() }; },\n 1(r, msg) {\n const [key, value] = r.message(BatchResultStepResult);\n msg.stepResults.set(key, value);\n },\n 2(r, msg) {\n const [key, value] = r.message(BatchResultStepError);\n msg.stepErrors.set(key, value);\n },\n};\nconst BatchResultStepResult = {\n default() { return [0, exports.StmtResult.default()]; },\n 1(r, msg) { msg[0] = r.uint32(); },\n 2(r, msg) { msg[1] = r.message(exports.StmtResult); },\n};\nconst BatchResultStepError = {\n default() { return [0, exports.Error.default()]; },\n 1(r, msg) { msg[0] = r.uint32(); },\n 2(r, msg) { msg[1] = r.message(exports.Error); },\n};\nexports.CursorEntry = {\n default() { return { type: \"none\" }; },\n 1(r) { return r.message(StepBeginEntry); },\n 2(r) { return r.message(StepEndEntry); },\n 3(r) { return r.message(StepErrorEntry); },\n 4(r) { return { type: \"row\", row: r.message(Row) }; },\n 5(r) { return { type: \"error\", error: r.message(exports.Error) }; },\n};\nconst StepBeginEntry = {\n default() { return { type: \"step_begin\", step: 0, cols: [] }; },\n 1(r, msg) { msg.step = r.uint32(); },\n 2(r, msg) { msg.cols.push(r.message(Col)); },\n};\nconst StepEndEntry = {\n default() {\n return {\n type: \"step_end\",\n affectedRowCount: 0,\n lastInsertRowid: undefined,\n };\n },\n 1(r, msg) { msg.affectedRowCount = r.uint32(); },\n 2(r, msg) { msg.lastInsertRowid = r.uint64(); },\n};\nconst StepErrorEntry = {\n default() {\n return {\n type: \"step_error\",\n step: 0,\n error: exports.Error.default(),\n };\n },\n 1(r, msg) { msg.step = r.uint32(); },\n 2(r, msg) { msg.error = r.message(exports.Error); },\n};\nexports.DescribeResult = {\n default() {\n return {\n params: [],\n cols: [],\n isExplain: false,\n isReadonly: false,\n };\n },\n 1(r, msg) { msg.params.push(r.message(DescribeParam)); },\n 2(r, msg) { msg.cols.push(r.message(DescribeCol)); },\n 3(r, msg) { msg.isExplain = r.bool(); },\n 4(r, msg) { msg.isReadonly = r.bool(); },\n};\nconst DescribeParam = {\n default() { return { name: undefined }; },\n 1(r, msg) { msg.name = r.string(); },\n};\nconst DescribeCol = {\n default() { return { name: \"\", decltype: undefined }; },\n 1(r, msg) { msg.name = r.string(); },\n 2(r, msg) { msg.decltype = r.string(); },\n};\nconst Value = {\n default() { return undefined; },\n 1(r) { return null; },\n 2(r) { return r.sint64(); },\n 3(r) { return r.double(); },\n 4(r) { return r.string(); },\n 5(r) { return r.bytes(); },\n};\n"],"mappings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