{"ast":null,"code":"export const 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};\nexport const 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};\nexport const 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, StmtResult.default()];\n },\n 1(r, msg) {\n msg[0] = r.uint32();\n },\n 2(r, msg) {\n msg[1] = r.message(StmtResult);\n }\n};\nconst BatchResultStepError = {\n default() {\n return [0, Error.default()];\n },\n 1(r, msg) {\n msg[0] = r.uint32();\n },\n 2(r, msg) {\n msg[1] = r.message(Error);\n }\n};\nexport const 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(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: Error.default()\n };\n },\n 1(r, msg) {\n msg.step = r.uint32();\n },\n 2(r, msg) {\n msg.error = r.message(Error);\n }\n};\nexport const 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":["Error","default","message","code","undefined","r","msg","string","StmtResult","cols","rows","affectedRowCount","lastInsertRowid","push","Col","Row","Number","uint64","sint64","name","decltype","Value","BatchResult","stepResults","Map","stepErrors","key","value","BatchResultStepResult","set","BatchResultStepError","uint32","CursorEntry","type","StepBeginEntry","StepEndEntry","StepErrorEntry","row","error","step","DescribeResult","params","isExplain","isReadonly","DescribeParam","DescribeCol","bool","double","bytes"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js"],"sourcesContent":["export const Error = {\n default() { return { message: \"\", code: undefined }; },\n 1(r, msg) { msg.message = r.string(); },\n 2(r, msg) { msg.code = r.string(); },\n};\nexport const 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};\nexport const 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, StmtResult.default()]; },\n 1(r, msg) { msg[0] = r.uint32(); },\n 2(r, msg) { msg[1] = r.message(StmtResult); },\n};\nconst BatchResultStepError = {\n default() { return [0, Error.default()]; },\n 1(r, msg) { msg[0] = r.uint32(); },\n 2(r, msg) { msg[1] = r.message(Error); },\n};\nexport const 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(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: Error.default(),\n };\n },\n 1(r, msg) { msg.step = r.uint32(); },\n 2(r, msg) { msg.error = r.message(Error); },\n};\nexport const 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":"AAAA,OAAO,MAAMA,KAAK,GAAG;EACjBC,OAAOA,CAAA,EAAG;IAAE,OAAO;MAAEC,OAAO,EAAE,EAAE;MAAEC,IAAI,EAAEC;IAAU,CAAC;EAAE,CAAC;EACtD,CAAC,CAACC,CAAC,EAAEC,GAAG,EAAE;IAAEA,GAAG,CAACJ,OAAO,GAAGG,CAAC,CAACE,MAAM,CAAC,CAAC;EAAE,CAAC;EACvC,CAAC,CAACF,CAAC,EAAEC,GAAG,EAAE;IAAEA,GAAG,CAACH,IAAI,GAAGE,CAAC,CAACE,MAAM,CAAC,CAAC;EAAE;AACvC,CAAC;AACD,OAAO,MAAMC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