05ed037fe8
- DNS: pilot.landvex.com -> 16.170.83.169 - TLS: Let's Encrypt certificate (expires 2026-09-30) - Nginx: reverse proxy with SSL termination - API: https://pilot.landvex.com/api/v1/missions - UI: https://pilot.landvex.com/ - Upload: POST /api/v1/missions/import (multipart/form-data) Verified: ✅ https://pilot.landvex.com/health ✅ https://pilot.landvex.com/version ✅ https://pilot.landvex.com/api/v1/missions (list) ✅ https://pilot.landvex.com/api/v1/missions/:id (get) ✅ POST /api/v1/missions/import (video upload) ✅ UI loads with title 'LandveX Intelligence Lab' Next: Pilot 001 — Break the system!
45 lines
180 KiB
Plaintext
45 lines
180 KiB
Plaintext
{"$message_type":"diagnostic","message":"error returned from database: relation \"ledger_payroll_runs\" does not exist","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/payroll.rs","byte_start":852,"byte_end":1141,"line_start":41,"line_end":49,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, period, run_date, status,","highlight_start":1,"highlight_end":56},{"text":" total_gross, total_tax, total_net, total_employer_fees,","highlight_start":1,"highlight_end":71},{"text":" journal_entry_id, created_at, updated_at","highlight_start":1,"highlight_end":56},{"text":" FROM ledger_payroll_runs","highlight_start":1,"highlight_end":33},{"text":" ORDER BY run_date DESC","highlight_start":1,"highlight_end":31},{"text":" \"#","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: error returned from database: relation \"ledger_payroll_runs\" does not exist\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/payroll.rs:41:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m41\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m43\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, period, run_date, status,\n\u001b[1m\u001b[94m44\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m total_gross, total_tax, total_net, total_employer_fees,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m48\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m49\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"error returned from database: relation \"ledger_payroll_runs\" does not exist","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/payroll.rs","byte_start":2160,"byte_end":2452,"line_start":85,"line_end":94,"column_start":15,"column_end":6,"is_primary":false,"text":[{"text":" let row = sqlx::query!(","highlight_start":15,"highlight_end":28},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, period, run_date, status,","highlight_start":1,"highlight_end":56},{"text":" total_gross, total_tax, total_net, total_employer_fees,","highlight_start":1,"highlight_end":71},{"text":" journal_entry_id, created_at, updated_at","highlight_start":1,"highlight_end":56},{"text":" FROM ledger_payroll_runs","highlight_start":1,"highlight_end":33},{"text":" WHERE id = $1","highlight_start":1,"highlight_end":22},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: error returned from database: relation \"ledger_payroll_runs\" does not exist\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/payroll.rs:85:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m85\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _______________^\u001b[0m\n\u001b[1m\u001b[94m86\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m87\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, period, run_date, status,\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m total_gross, total_tax, total_net, total_employer_fees,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m93\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m94\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"error returned from database: relation \"ledger_payroll_employees\" does not exist","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/payroll.rs","byte_start":2572,"byte_end":2779,"line_start":99,"line_end":106,"column_start":21,"column_end":6,"is_primary":false,"text":[{"text":" let employees = sqlx::query!(","highlight_start":21,"highlight_end":34},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT employee_id, name, gross_salary, tax_deduction, net_salary, employer_fees","highlight_start":1,"highlight_end":89},{"text":" FROM ledger_payroll_employees","highlight_start":1,"highlight_end":38},{"text":" WHERE run_id = $1","highlight_start":1,"highlight_end":26},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: error returned from database: relation \"ledger_payroll_employees\" does not exist\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/payroll.rs:99:21\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 99\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let employees = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _____________________^\u001b[0m\n\u001b[1m\u001b[94m100\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m101\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT employee_id, name, gross_salary, tax_deduction, net_salary, employer_fees\n\u001b[1m\u001b[94m102\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m FROM ledger_payroll_employees\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m105\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m106\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"error returned from database: relation \"ledger_payroll_runs\" does not exist","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/payroll.rs","byte_start":4663,"byte_end":5023,"line_start":160,"line_end":172,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" INSERT INTO ledger_payroll_runs","highlight_start":1,"highlight_end":40},{"text":" (id, tenant_id, period, run_date, status, total_gross, total_tax,","highlight_start":1,"highlight_end":76},{"text":" total_net, total_employer_fees, trace_id)","highlight_start":1,"highlight_end":53},{"text":" VALUES ($1, $2, $3, $4, 'draft', 0, 0, 0, 0, $5)","highlight_start":1,"highlight_end":57},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id,","highlight_start":1,"highlight_end":12},{"text":" req.tenant_id,","highlight_start":1,"highlight_end":23},{"text":" req.period,","highlight_start":1,"highlight_end":20},{"text":" run_date,","highlight_start":1,"highlight_end":18},{"text":" trace_id,","highlight_start":1,"highlight_end":18},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: error returned from database: relation \"ledger_payroll_runs\" does not exist\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/payroll.rs:160:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m160\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m161\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m162\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m INSERT INTO ledger_payroll_runs\n\u001b[1m\u001b[94m163\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m (id, tenant_id, period, run_date, status, total_gross, total_tax,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m171\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m trace_id,\n\u001b[1m\u001b[94m172\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"error returned from database: relation \"ledger_payroll_employees\" does not exist","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/payroll.rs","byte_start":5756,"byte_end":5944,"line_start":204,"line_end":211,"column_start":21,"column_end":6,"is_primary":false,"text":[{"text":" let employees = sqlx::query!(","highlight_start":21,"highlight_end":34},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT gross_salary, tax_deduction, net_salary, employer_fees","highlight_start":1,"highlight_end":70},{"text":" FROM ledger_payroll_employees","highlight_start":1,"highlight_end":38},{"text":" WHERE run_id = $1","highlight_start":1,"highlight_end":26},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: error returned from database: relation \"ledger_payroll_employees\" does not exist\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/payroll.rs:204:21\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m204\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let employees = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _____________________^\u001b[0m\n\u001b[1m\u001b[94m205\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m206\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT gross_salary, tax_deduction, net_salary, employer_fees\n\u001b[1m\u001b[94m207\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m FROM ledger_payroll_employees\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m210\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m211\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"error returned from database: relation \"ledger_payroll_runs\" does not exist","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/payroll.rs","byte_start":6348,"byte_end":6705,"line_start":221,"line_end":236,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" UPDATE ledger_payroll_runs","highlight_start":1,"highlight_end":35},{"text":" SET status = 'processed',","highlight_start":1,"highlight_end":34},{"text":" total_gross = $2,","highlight_start":1,"highlight_end":30},{"text":" total_tax = $3,","highlight_start":1,"highlight_end":28},{"text":" total_net = $4,","highlight_start":1,"highlight_end":28},{"text":" total_employer_fees = $5","highlight_start":1,"highlight_end":37},{"text":" WHERE id = $1","highlight_start":1,"highlight_end":22},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id,","highlight_start":1,"highlight_end":12},{"text":" total_gross,","highlight_start":1,"highlight_end":21},{"text":" total_tax,","highlight_start":1,"highlight_end":19},{"text":" total_net,","highlight_start":1,"highlight_end":19},{"text":" total_employer_fees,","highlight_start":1,"highlight_end":29},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: error returned from database: relation \"ledger_payroll_runs\" does not exist\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/payroll.rs:221:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m221\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m222\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m223\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m UPDATE ledger_payroll_runs\n\u001b[1m\u001b[94m224\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SET status = 'processed',\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m235\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m total_employer_fees,\n\u001b[1m\u001b[94m236\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #7 (\"bank_balance\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":846,"byte_end":1122,"line_start":39,"line_end":46,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" ORDER BY created_at DESC","highlight_start":1,"highlight_end":33},{"text":" \"#","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #7 (\"bank_balance\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:39:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m39\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m40\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m41\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m45\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #8 (\"ledger_balance\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":846,"byte_end":1122,"line_start":39,"line_end":46,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" ORDER BY created_at DESC","highlight_start":1,"highlight_end":33},{"text":" \"#","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #8 (\"ledger_balance\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:39:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m39\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m40\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m41\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m45\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #9 (\"difference\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":846,"byte_end":1122,"line_start":39,"line_end":46,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" ORDER BY created_at DESC","highlight_start":1,"highlight_end":33},{"text":" \"#","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #9 (\"difference\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:39:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m39\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m40\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m41\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m45\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #7 (\"bank_balance\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":846,"byte_end":1122,"line_start":39,"line_end":46,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" ORDER BY created_at DESC","highlight_start":1,"highlight_end":33},{"text":" \"#","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #7 (\"bank_balance\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:39:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m39\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m40\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m41\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m45\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #8 (\"ledger_balance\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":846,"byte_end":1122,"line_start":39,"line_end":46,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" ORDER BY created_at DESC","highlight_start":1,"highlight_end":33},{"text":" \"#","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #8 (\"ledger_balance\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:39:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m39\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m40\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m41\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m45\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #9 (\"difference\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15762,"byte_end":15813,"line_start":317,"line_end":317,"column_start":9,"column_end":60,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query)","highlight_start":9,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":846,"byte_end":1122,"line_start":39,"line_end":46,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" ORDER BY created_at DESC","highlight_start":1,"highlight_end":33},{"text":" \"#","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #9 (\"difference\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:39:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m39\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m40\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m41\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m45\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #7 (\"bank_balance\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":2133,"byte_end":2410,"line_start":81,"line_end":89,"column_start":15,"column_end":6,"is_primary":false,"text":[{"text":" let row = sqlx::query!(","highlight_start":15,"highlight_end":28},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" WHERE id = $1","highlight_start":1,"highlight_end":22},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #7 (\"bank_balance\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:81:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m81\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _______________^\u001b[0m\n\u001b[1m\u001b[94m82\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m83\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m89\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #8 (\"ledger_balance\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":2133,"byte_end":2410,"line_start":81,"line_end":89,"column_start":15,"column_end":6,"is_primary":false,"text":[{"text":" let row = sqlx::query!(","highlight_start":15,"highlight_end":28},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" WHERE id = $1","highlight_start":1,"highlight_end":22},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #8 (\"ledger_balance\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:81:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m81\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _______________^\u001b[0m\n\u001b[1m\u001b[94m82\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m83\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m89\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #9 (\"difference\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":2133,"byte_end":2410,"line_start":81,"line_end":89,"column_start":15,"column_end":6,"is_primary":false,"text":[{"text":" let row = sqlx::query!(","highlight_start":15,"highlight_end":28},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" WHERE id = $1","highlight_start":1,"highlight_end":22},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #9 (\"difference\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:81:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m81\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _______________^\u001b[0m\n\u001b[1m\u001b[94m82\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m83\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m89\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #7 (\"bank_balance\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":2133,"byte_end":2410,"line_start":81,"line_end":89,"column_start":15,"column_end":6,"is_primary":false,"text":[{"text":" let row = sqlx::query!(","highlight_start":15,"highlight_end":28},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" WHERE id = $1","highlight_start":1,"highlight_end":22},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #7 (\"bank_balance\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:81:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m81\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _______________^\u001b[0m\n\u001b[1m\u001b[94m82\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m83\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m89\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #8 (\"ledger_balance\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":2133,"byte_end":2410,"line_start":81,"line_end":89,"column_start":15,"column_end":6,"is_primary":false,"text":[{"text":" let row = sqlx::query!(","highlight_start":15,"highlight_end":28},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" WHERE id = $1","highlight_start":1,"highlight_end":22},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #8 (\"ledger_balance\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:81:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m81\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _______________^\u001b[0m\n\u001b[1m\u001b[94m82\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m83\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m89\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #9 (\"difference\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":2133,"byte_end":2410,"line_start":81,"line_end":89,"column_start":15,"column_end":6,"is_primary":false,"text":[{"text":" let row = sqlx::query!(","highlight_start":15,"highlight_end":28},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":75},{"text":" bank_balance, ledger_balance, difference, created_at, completed_at","highlight_start":1,"highlight_end":82},{"text":" FROM ledger_reconciliation_sessions","highlight_start":1,"highlight_end":44},{"text":" WHERE id = $1","highlight_start":1,"highlight_end":22},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id","highlight_start":1,"highlight_end":11},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #9 (\"difference\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:81:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m81\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _______________^\u001b[0m\n\u001b[1m\u001b[94m82\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m83\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m bank_balance, ledger_balance, difference, created_at, completed_at\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m89\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"optional sqlx feature `bigdecimal` required for type NUMERIC of param #6","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":3532,"byte_end":4036,"line_start":124,"line_end":140,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" INSERT INTO ledger_reconciliation_sessions","highlight_start":1,"highlight_end":51},{"text":" (id, tenant_id, account_number, period, fiscal_year, status,","highlight_start":1,"highlight_end":71},{"text":" bank_balance, ledger_balance, difference, trace_id, metadata)","highlight_start":1,"highlight_end":73},{"text":" VALUES ($1, $2, $3, $4, $5, 'open', $6, $7, $8, $9, '{}')","highlight_start":1,"highlight_end":66},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" id,","highlight_start":1,"highlight_end":12},{"text":" req.tenant_id,","highlight_start":1,"highlight_end":23},{"text":" req.account_number,","highlight_start":1,"highlight_end":28},{"text":" req.period,","highlight_start":1,"highlight_end":20},{"text":" req.fiscal_year,","highlight_start":1,"highlight_end":25},{"text":" req.bank_balance,","highlight_start":1,"highlight_end":26},{"text":" req.ledger_balance,","highlight_start":1,"highlight_end":28},{"text":" difference,","highlight_start":1,"highlight_end":20},{"text":" trace_id,","highlight_start":1,"highlight_end":18},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: optional sqlx feature `bigdecimal` required for type NUMERIC of param #6\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:124:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m124\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m125\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m126\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m INSERT INTO ledger_reconciliation_sessions\n\u001b[1m\u001b[94m127\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m (id, tenant_id, account_number, period, fiscal_year, status,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m139\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m trace_id,\n\u001b[1m\u001b[94m140\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"error returned from database: column \"transaction_id\" does not exist","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/reconciliation.rs","byte_start":4941,"byte_end":5091,"line_start":174,"line_end":178,"column_start":9,"column_end":10,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":9,"highlight_end":22},{"text":" \"UPDATE ledger_bank_transactions SET session_id = $2 WHERE transaction_id = $1\",","highlight_start":1,"highlight_end":93},{"text":" tx_id,","highlight_start":1,"highlight_end":19},{"text":" id","highlight_start":1,"highlight_end":15},{"text":" )","highlight_start":1,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: error returned from database: column \"transaction_id\" does not exist\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:174:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m174\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m175\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_bank_transactions SET session_id = $2 WHERE transaction_id = $1\",\n\u001b[1m\u001b[94m176\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m tx_id,\n\u001b[1m\u001b[94m177\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_________^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #2 (\"net_amount\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":558,"byte_end":1035,"line_start":28,"line_end":43,"column_start":25,"column_end":6,"is_primary":false,"text":[{"text":" let utgaende_rows = sqlx::query!(","highlight_start":25,"highlight_end":38},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT","highlight_start":1,"highlight_end":15},{"text":" l.account_number,","highlight_start":1,"highlight_end":28},{"text":" COALESCE(SUM(l.credit), 0) - COALESCE(SUM(l.debit), 0) as net_amount","highlight_start":1,"highlight_end":79},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number LIKE '26%'","highlight_start":1,"highlight_end":42},{"text":" GROUP BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #2 (\"net_amount\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:28:25\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m28\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let utgaende_rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _________________________^\u001b[0m\n\u001b[1m\u001b[94m29\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m30\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m31\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m l.account_number,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m43\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #2 (\"net_amount\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":558,"byte_end":1035,"line_start":28,"line_end":43,"column_start":25,"column_end":6,"is_primary":false,"text":[{"text":" let utgaende_rows = sqlx::query!(","highlight_start":25,"highlight_end":38},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT","highlight_start":1,"highlight_end":15},{"text":" l.account_number,","highlight_start":1,"highlight_end":28},{"text":" COALESCE(SUM(l.credit), 0) - COALESCE(SUM(l.debit), 0) as net_amount","highlight_start":1,"highlight_end":79},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number LIKE '26%'","highlight_start":1,"highlight_end":42},{"text":" GROUP BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #2 (\"net_amount\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:28:25\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m28\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let utgaende_rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _________________________^\u001b[0m\n\u001b[1m\u001b[94m29\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m30\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m31\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m l.account_number,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m43\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #1 (\"net_amount\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1153,"byte_end":1556,"line_start":48,"line_end":60,"column_start":24,"column_end":6,"is_primary":false,"text":[{"text":" let ingaende_row = sqlx::query!(","highlight_start":24,"highlight_end":37},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT COALESCE(SUM(l.debit), 0) - COALESCE(SUM(l.credit), 0) as net_amount","highlight_start":1,"highlight_end":84},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number = '2640'","highlight_start":1,"highlight_end":40},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #1 (\"net_amount\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:48:24\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m48\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let ingaende_row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________________^\u001b[0m\n\u001b[1m\u001b[94m49\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m50\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT COALESCE(SUM(l.debit), 0) - COALESCE(SUM(l.credit), 0) as net_amount\n\u001b[1m\u001b[94m51\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m FROM ledger_journal_lines l\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m59\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m60\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #1 (\"net_amount\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1153,"byte_end":1556,"line_start":48,"line_end":60,"column_start":24,"column_end":6,"is_primary":false,"text":[{"text":" let ingaende_row = sqlx::query!(","highlight_start":24,"highlight_end":37},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT COALESCE(SUM(l.debit), 0) - COALESCE(SUM(l.credit), 0) as net_amount","highlight_start":1,"highlight_end":84},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number = '2640'","highlight_start":1,"highlight_end":40},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #1 (\"net_amount\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:48:24\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m48\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let ingaende_row = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________________^\u001b[0m\n\u001b[1m\u001b[94m49\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m50\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT COALESCE(SUM(l.debit), 0) - COALESCE(SUM(l.credit), 0) as net_amount\n\u001b[1m\u001b[94m51\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m FROM ledger_journal_lines l\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m59\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m60\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #2 (\"total_debit\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3012,"byte_end":3540,"line_start":106,"line_end":122,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT","highlight_start":1,"highlight_end":15},{"text":" l.account_number,","highlight_start":1,"highlight_end":28},{"text":" COALESCE(SUM(l.debit), 0) as total_debit,","highlight_start":1,"highlight_end":52},{"text":" COALESCE(SUM(l.credit), 0) as total_credit","highlight_start":1,"highlight_end":53},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number IN ('7010', '7510', '2012', '2013')","highlight_start":1,"highlight_end":67},{"text":" GROUP BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #2 (\"total_debit\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:106:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m106\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m107\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m108\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m109\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m l.account_number,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m121\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m122\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #3 (\"total_credit\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3012,"byte_end":3540,"line_start":106,"line_end":122,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT","highlight_start":1,"highlight_end":15},{"text":" l.account_number,","highlight_start":1,"highlight_end":28},{"text":" COALESCE(SUM(l.debit), 0) as total_debit,","highlight_start":1,"highlight_end":52},{"text":" COALESCE(SUM(l.credit), 0) as total_credit","highlight_start":1,"highlight_end":53},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number IN ('7010', '7510', '2012', '2013')","highlight_start":1,"highlight_end":67},{"text":" GROUP BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #3 (\"total_credit\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:106:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m106\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m107\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m108\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m109\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m l.account_number,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m121\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m122\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #2 (\"total_debit\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3012,"byte_end":3540,"line_start":106,"line_end":122,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT","highlight_start":1,"highlight_end":15},{"text":" l.account_number,","highlight_start":1,"highlight_end":28},{"text":" COALESCE(SUM(l.debit), 0) as total_debit,","highlight_start":1,"highlight_end":52},{"text":" COALESCE(SUM(l.credit), 0) as total_credit","highlight_start":1,"highlight_end":53},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number IN ('7010', '7510', '2012', '2013')","highlight_start":1,"highlight_end":67},{"text":" GROUP BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #2 (\"total_debit\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:106:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m106\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m107\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m108\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m109\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m l.account_number,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m121\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m122\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"SQLx feature `bigdecimal` required for type NUMERIC of column #3 (\"total_credit\")","code":null,"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":true,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":16544,"byte_end":16615,"line_start":328,"line_end":328,"column_start":9,"column_end":80,"is_primary":false,"text":[{"text":" $crate::sqlx_macros::expand_query!(source = $query, args = [$($args)*])","highlight_start":9,"highlight_end":80}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3012,"byte_end":3540,"line_start":106,"line_end":122,"column_start":16,"column_end":6,"is_primary":false,"text":[{"text":" let rows = sqlx::query!(","highlight_start":16,"highlight_end":29},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT","highlight_start":1,"highlight_end":15},{"text":" l.account_number,","highlight_start":1,"highlight_end":28},{"text":" COALESCE(SUM(l.debit), 0) as total_debit,","highlight_start":1,"highlight_end":52},{"text":" COALESCE(SUM(l.credit), 0) as total_credit","highlight_start":1,"highlight_end":53},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number IN ('7010', '7510', '2012', '2013')","highlight_start":1,"highlight_end":67},{"text":" GROUP BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"sqlx::query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.6/src/macros/mod.rs","byte_start":15636,"byte_end":15654,"line_start":314,"line_end":314,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"macro_rules! query (","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::sqlx_macros::expand_query!","def_site_span":{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-macros-0.8.6/src/lib.rs","byte_start":116,"byte_end":170,"line_start":9,"line_end":9,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"pub fn expand_query(input: TokenStream) -> TokenStream {","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: SQLx feature `bigdecimal` required for type NUMERIC of column #3 (\"total_credit\")\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:106:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m106\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m ________________^\u001b[0m\n\u001b[1m\u001b[94m107\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m108\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m109\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m l.account_number,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m121\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m122\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m )\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_____^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"unused import: `axum::Router`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"crates/aamos-api/src/main.rs","byte_start":140,"byte_end":152,"line_start":5,"line_end":5,"column_start":5,"column_end":17,"is_primary":true,"text":[{"text":"use axum::Router;","highlight_start":5,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/main.rs","byte_start":136,"byte_end":154,"line_start":5,"line_end":6,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use axum::Router;","highlight_start":1,"highlight_end":18},{"text":"use std::sync::Arc;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `axum::Router`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/main.rs:5:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m5\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use axum::Router;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"}
|
|
{"$message_type":"diagnostic","message":"unused imports: `delete` and `put`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"crates/aamos-api/src/routes/mod.rs","byte_start":26,"byte_end":32,"line_start":2,"line_end":2,"column_start":15,"column_end":21,"is_primary":true,"text":[{"text":" routing::{delete, get, post, put},","highlight_start":15,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/mod.rs","byte_start":45,"byte_end":48,"line_start":2,"line_end":2,"column_start":34,"column_end":37,"is_primary":true,"text":[{"text":" routing::{delete, get, post, put},","highlight_start":34,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the unused imports","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/mod.rs","byte_start":26,"byte_end":34,"line_start":2,"line_end":2,"column_start":15,"column_end":23,"is_primary":true,"text":[{"text":" routing::{delete, get, post, put},","highlight_start":15,"highlight_end":23}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"crates/aamos-api/src/routes/mod.rs","byte_start":43,"byte_end":48,"line_start":2,"line_end":2,"column_start":32,"column_end":37,"is_primary":true,"text":[{"text":" routing::{delete, get, post, put},","highlight_start":32,"highlight_end":37}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused imports: `delete` and `put`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/mod.rs:2:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m2\u001b[0m \u001b[1m\u001b[94m|\u001b[0m routing::{delete, get, post, put},\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^\u001b[0m \u001b[1m\u001b[33m^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"unused import: `serde_json::json`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"crates/aamos-api/src/routes/bank_import.rs","byte_start":93,"byte_end":109,"line_start":3,"line_end":3,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"use serde_json::json;","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/bank_import.rs","byte_start":89,"byte_end":111,"line_start":3,"line_end":4,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use serde_json::json;","highlight_start":1,"highlight_end":22},{"text":"use std::sync::Arc;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `serde_json::json`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/bank_import.rs:3:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m3\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use serde_json::json;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"unused import: `chrono::Utc`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"crates/aamos-api/src/routes/payroll.rs","byte_start":79,"byte_end":90,"line_start":6,"line_end":6,"column_start":5,"column_end":16,"is_primary":true,"text":[{"text":"use chrono::Utc;","highlight_start":5,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/payroll.rs","byte_start":75,"byte_end":92,"line_start":6,"line_end":7,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use chrono::Utc;","highlight_start":1,"highlight_end":17},{"text":"use serde::{Deserialize, Serialize};","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `chrono::Utc`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/payroll.rs:6:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m6\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use chrono::Utc;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1750,"byte_end":1754,"line_start":67,"line_end":67,"column_start":41,"column_end":45,"is_primary":true,"text":[{"text":" .map(|r| r.net_amount.unwrap_or(0i64))","highlight_start":41,"highlight_end":45}],"label":"expected `()`, found `i64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1740,"byte_end":1749,"line_start":67,"line_end":67,"column_start":31,"column_end":40,"is_primary":false,"text":[{"text":" .map(|r| r.net_amount.unwrap_or(0i64))","highlight_start":31,"highlight_end":40}],"label":"arguments to this method are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the return type of this call is `i64` due to the type of the argument passed","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1750,"byte_end":1754,"line_start":67,"line_end":67,"column_start":41,"column_end":45,"is_primary":false,"text":[{"text":" .map(|r| r.net_amount.unwrap_or(0i64))","highlight_start":41,"highlight_end":45}],"label":"this argument influences the return type of `unwrap_or`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1727,"byte_end":1755,"line_start":67,"line_end":67,"column_start":18,"column_end":46,"is_primary":true,"text":[{"text":" .map(|r| r.net_amount.unwrap_or(0i64))","highlight_start":18,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs","byte_start":40335,"byte_end":40344,"line_start":1038,"line_end":1038,"column_start":18,"column_end":27,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:67:41\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m67\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .map(|r| r.net_amount.unwrap_or(0i64))\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mexpected `()`, found `i64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94marguments to this method are incorrect\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the return type of this call is `i64` due to the type of the argument passed\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:67:18\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m67\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .map(|r| r.net_amount.unwrap_or(0i64))\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\u001b[1m\u001b[94m----\u001b[0m\u001b[1m\u001b[96m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mthis argument influences the return type of `unwrap_or`\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n \u001b[1m\u001b[94m--> \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs:1038:17\n\n"}
|
|
{"$message_type":"diagnostic","message":"a value of type `i64` cannot be made by summing an iterator over elements of type `()`","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1766,"byte_end":1769,"line_start":68,"line_end":68,"column_start":10,"column_end":13,"is_primary":true,"text":[{"text":" .sum();","highlight_start":10,"highlight_end":13}],"label":"value of type `i64` cannot be made by summing a `std::iter::Iterator<Item=()>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `Sum<()>` is not implemented for `i64`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`i64` implements trait `Sum<A>`","code":null,"level":"help","spans":[{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":2849,"byte_end":2876,"line_start":72,"line_end":72,"column_start":9,"column_end":36,"is_primary":true,"text":[],"label":"`Sum<&i64>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":3478,"byte_end":3611,"line_start":94,"line_end":96,"column_start":9,"column_end":24,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":6876,"byte_end":6952,"line_start":206,"line_end":206,"column_start":1,"column_end":77,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"integer_sum_product!","def_site_span":{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":2136,"byte_end":3796,"line_start":47,"line_end":101,"column_start":1,"column_end":2,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"integer_sum_product!","def_site_span":{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":2136,"byte_end":3796,"line_start":47,"line_end":101,"column_start":1,"column_end":2,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":2264,"byte_end":2279,"line_start":50,"line_end":50,"column_start":9,"column_end":24,"is_primary":true,"text":[],"label":"`Sum`","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":3478,"byte_end":3611,"line_start":94,"line_end":96,"column_start":9,"column_end":24,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":6876,"byte_end":6952,"line_start":206,"line_end":206,"column_start":1,"column_end":77,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"integer_sum_product!","def_site_span":{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":2136,"byte_end":3796,"line_start":47,"line_end":101,"column_start":1,"column_end":2,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"integer_sum_product!","def_site_span":{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs","byte_start":2136,"byte_end":3796,"line_start":47,"line_end":101,"column_start":1,"column_end":2,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":null},{"message":"the method call chain might not have had the expected associated types","code":null,"level":"note","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":558,"byte_end":1127,"line_start":28,"line_end":46,"column_start":25,"column_end":53,"is_primary":false,"text":[{"text":" let utgaende_rows = sqlx::query!(","highlight_start":25,"highlight_end":38},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT","highlight_start":1,"highlight_end":15},{"text":" l.account_number,","highlight_start":1,"highlight_end":28},{"text":" COALESCE(SUM(l.credit), 0) - COALESCE(SUM(l.debit), 0) as net_amount","highlight_start":1,"highlight_end":79},{"text":" FROM ledger_journal_lines l","highlight_start":1,"highlight_end":36},{"text":" JOIN ledger_journal_entries e ON e.id = l.entry_id","highlight_start":1,"highlight_end":59},{"text":" WHERE e.tenant_id = $1","highlight_start":1,"highlight_end":31},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" AND l.account_number LIKE '26%'","highlight_start":1,"highlight_end":42},{"text":" GROUP BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" params.tenant_id,","highlight_start":1,"highlight_end":26},{"text":" params.period","highlight_start":1,"highlight_end":22},{"text":" )","highlight_start":1,"highlight_end":6},{"text":" .fetch_all(&state.pool)","highlight_start":1,"highlight_end":28},{"text":" .await","highlight_start":1,"highlight_end":11},{"text":" .map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;","highlight_start":1,"highlight_end":53}],"label":"this expression has type `Vec<Record>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1719,"byte_end":1756,"line_start":67,"line_end":67,"column_start":10,"column_end":47,"is_primary":true,"text":[{"text":" .map(|r| r.net_amount.unwrap_or(0i64))","highlight_start":10,"highlight_end":47}],"label":"`Iterator::Item` changed to `()` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1703,"byte_end":1709,"line_start":66,"line_end":66,"column_start":10,"column_end":16,"is_primary":false,"text":[{"text":" .iter()","highlight_start":10,"highlight_end":16}],"label":"`Iterator::Item` is `&Record` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"required by a bound in `std::iter::Iterator::sum`","code":null,"level":"note","spans":[{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/iterator.rs","byte_start":123605,"byte_end":123692,"line_start":3671,"line_end":3674,"column_start":5,"column_end":36,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: a value of type `i64` cannot be made by summing an iterator over elements of type `()`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:68:10\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m68\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .sum();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mvalue of type `i64` cannot be made by summing a `std::iter::Iterator<Item=()>`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the trait `Sum<()>` is not implemented for `i64`\n\u001b[1m\u001b[96mhelp\u001b[0m: `i64` implements trait `Sum<A>`\n \u001b[1m\u001b[94m--> \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs:50:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `Sum`\n \u001b[1m\u001b[94m::: \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs:72:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `Sum<&i64>`\n \u001b[1m\u001b[94m::: \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/accum.rs:206:0\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: in this macro invocation\n\u001b[1m\u001b[92mnote\u001b[0m: the method call chain might not have had the expected associated types\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:67:10\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m28\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let utgaende_rows = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m _________________________-\u001b[0m\n\u001b[1m\u001b[94m29\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m r#\"\n\u001b[1m\u001b[94m30\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m SELECT\n\u001b[1m\u001b[94m31\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m l.account_number,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m45\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .await\n\u001b[1m\u001b[94m46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|____________________________________________________-\u001b[0m \u001b[1m\u001b[94mthis expression has type `Vec<Record>`\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m66\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .iter()\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94m`Iterator::Item` is `&Record` here\u001b[0m\n\u001b[1m\u001b[94m67\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .map(|r| r.net_amount.unwrap_or(0i64))\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92m`Iterator::Item` changed to `()` here\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `std::iter::Iterator::sum`\n \u001b[1m\u001b[94m--> \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/iter/traits/iterator.rs:3671:4\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `integer_sum_product` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1836,"byte_end":1840,"line_start":69,"line_end":69,"column_start":64,"column_end":68,"is_primary":true,"text":[{"text":" let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);","highlight_start":64,"highlight_end":68}],"label":"expected `()`, found `i64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1826,"byte_end":1835,"line_start":69,"line_end":69,"column_start":54,"column_end":63,"is_primary":false,"text":[{"text":" let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);","highlight_start":54,"highlight_end":63}],"label":"arguments to this method are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the return type of this call is `i64` due to the type of the argument passed","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1836,"byte_end":1840,"line_start":69,"line_end":69,"column_start":64,"column_end":68,"is_primary":false,"text":[{"text":" let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);","highlight_start":64,"highlight_end":68}],"label":"this argument influences the return type of `unwrap_or`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1802,"byte_end":1841,"line_start":69,"line_end":69,"column_start":30,"column_end":69,"is_primary":true,"text":[{"text":" let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);","highlight_start":30,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs","byte_start":40335,"byte_end":40344,"line_start":1038,"line_end":1038,"column_start":18,"column_end":27,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:69:64\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m69\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mexpected `()`, found `i64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94marguments to this method are incorrect\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the return type of this call is `i64` due to the type of the argument passed\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:69:30\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m69\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\u001b[1m\u001b[94m----\u001b[0m\u001b[1m\u001b[96m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mthis argument influences the return type of `unwrap_or`\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n \u001b[1m\u001b[94m--> \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs:1038:17\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1802,"byte_end":1841,"line_start":69,"line_end":69,"column_start":30,"column_end":69,"is_primary":true,"text":[{"text":" let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);","highlight_start":30,"highlight_end":69}],"label":"expected `i64`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":1796,"byte_end":1799,"line_start":69,"line_end":69,"column_start":24,"column_end":27,"is_primary":false,"text":[{"text":" let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);","highlight_start":24,"highlight_end":27}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:69:30\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m69\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let moms_ingaende: i64 = ingaende_row.net_amount.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mexpected `i64`, found `()`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mexpected due to this\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":2450,"byte_end":2454,"line_start":84,"line_end":84,"column_start":50,"column_end":54,"is_primary":true,"text":[{"text":" \"belopp\": r.net_amount.unwrap_or(0i64),","highlight_start":50,"highlight_end":54}],"label":"expected `()`, found `i64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":2440,"byte_end":2449,"line_start":84,"line_end":84,"column_start":40,"column_end":49,"is_primary":false,"text":[{"text":" \"belopp\": r.net_amount.unwrap_or(0i64),","highlight_start":40,"highlight_end":49}],"label":"arguments to this method are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the return type of this call is `i64` due to the type of the argument passed","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":2450,"byte_end":2454,"line_start":84,"line_end":84,"column_start":50,"column_end":54,"is_primary":false,"text":[{"text":" \"belopp\": r.net_amount.unwrap_or(0i64),","highlight_start":50,"highlight_end":54}],"label":"this argument influences the return type of `unwrap_or`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":2427,"byte_end":2455,"line_start":84,"line_end":84,"column_start":27,"column_end":55,"is_primary":true,"text":[{"text":" \"belopp\": r.net_amount.unwrap_or(0i64),","highlight_start":27,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs","byte_start":40335,"byte_end":40344,"line_start":1038,"line_end":1038,"column_start":18,"column_end":27,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:84:50\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"belopp\": r.net_amount.unwrap_or(0i64),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mexpected `()`, found `i64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94marguments to this method are incorrect\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the return type of this call is `i64` due to the type of the argument passed\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:84:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"belopp\": r.net_amount.unwrap_or(0i64),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\u001b[1m\u001b[94m----\u001b[0m\u001b[1m\u001b[96m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mthis argument influences the return type of `unwrap_or`\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n \u001b[1m\u001b[94m--> \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs:1038:17\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3819,"byte_end":3823,"line_start":132,"line_end":132,"column_start":52,"column_end":56,"is_primary":true,"text":[{"text":" let debit: i64 = row.total_debit.unwrap_or(0i64);","highlight_start":52,"highlight_end":56}],"label":"expected `()`, found `i64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3809,"byte_end":3818,"line_start":132,"line_end":132,"column_start":42,"column_end":51,"is_primary":false,"text":[{"text":" let debit: i64 = row.total_debit.unwrap_or(0i64);","highlight_start":42,"highlight_end":51}],"label":"arguments to this method are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the return type of this call is `i64` due to the type of the argument passed","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3819,"byte_end":3823,"line_start":132,"line_end":132,"column_start":52,"column_end":56,"is_primary":false,"text":[{"text":" let debit: i64 = row.total_debit.unwrap_or(0i64);","highlight_start":52,"highlight_end":56}],"label":"this argument influences the return type of `unwrap_or`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3793,"byte_end":3824,"line_start":132,"line_end":132,"column_start":26,"column_end":57,"is_primary":true,"text":[{"text":" let debit: i64 = row.total_debit.unwrap_or(0i64);","highlight_start":26,"highlight_end":57}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs","byte_start":40335,"byte_end":40344,"line_start":1038,"line_end":1038,"column_start":18,"column_end":27,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:132:52\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m132\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let debit: i64 = row.total_debit.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mexpected `()`, found `i64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94marguments to this method are incorrect\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the return type of this call is `i64` due to the type of the argument passed\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:132:26\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m132\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let debit: i64 = row.total_debit.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\u001b[1m\u001b[94m----\u001b[0m\u001b[1m\u001b[96m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mthis argument influences the return type of `unwrap_or`\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n \u001b[1m\u001b[94m--> \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs:1038:17\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3793,"byte_end":3824,"line_start":132,"line_end":132,"column_start":26,"column_end":57,"is_primary":true,"text":[{"text":" let debit: i64 = row.total_debit.unwrap_or(0i64);","highlight_start":26,"highlight_end":57}],"label":"expected `i64`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3787,"byte_end":3790,"line_start":132,"line_end":132,"column_start":20,"column_end":23,"is_primary":false,"text":[{"text":" let debit: i64 = row.total_debit.unwrap_or(0i64);","highlight_start":20,"highlight_end":23}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:132:26\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m132\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let debit: i64 = row.total_debit.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mexpected `i64`, found `()`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mexpected due to this\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3879,"byte_end":3883,"line_start":133,"line_end":133,"column_start":54,"column_end":58,"is_primary":true,"text":[{"text":" let credit: i64 = row.total_credit.unwrap_or(0i64);","highlight_start":54,"highlight_end":58}],"label":"expected `()`, found `i64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3869,"byte_end":3878,"line_start":133,"line_end":133,"column_start":44,"column_end":53,"is_primary":false,"text":[{"text":" let credit: i64 = row.total_credit.unwrap_or(0i64);","highlight_start":44,"highlight_end":53}],"label":"arguments to this method are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the return type of this call is `i64` due to the type of the argument passed","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3879,"byte_end":3883,"line_start":133,"line_end":133,"column_start":54,"column_end":58,"is_primary":false,"text":[{"text":" let credit: i64 = row.total_credit.unwrap_or(0i64);","highlight_start":54,"highlight_end":58}],"label":"this argument influences the return type of `unwrap_or`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3852,"byte_end":3884,"line_start":133,"line_end":133,"column_start":27,"column_end":59,"is_primary":true,"text":[{"text":" let credit: i64 = row.total_credit.unwrap_or(0i64);","highlight_start":27,"highlight_end":59}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs","byte_start":40335,"byte_end":40344,"line_start":1038,"line_end":1038,"column_start":18,"column_end":27,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:133:54\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m133\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let credit: i64 = row.total_credit.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mexpected `()`, found `i64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94marguments to this method are incorrect\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the return type of this call is `i64` due to the type of the argument passed\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:133:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m133\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let credit: i64 = row.total_credit.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\u001b[1m\u001b[94m----\u001b[0m\u001b[1m\u001b[96m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mthis argument influences the return type of `unwrap_or`\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n \u001b[1m\u001b[94m--> \u001b[0m/rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/option.rs:1038:17\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3852,"byte_end":3884,"line_start":133,"line_end":133,"column_start":27,"column_end":59,"is_primary":true,"text":[{"text":" let credit: i64 = row.total_credit.unwrap_or(0i64);","highlight_start":27,"highlight_end":59}],"label":"expected `i64`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/routes/tax.rs","byte_start":3846,"byte_end":3849,"line_start":133,"line_end":133,"column_start":21,"column_end":24,"is_primary":false,"text":[{"text":" let credit: i64 = row.total_credit.unwrap_or(0i64);","highlight_start":21,"highlight_end":24}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/tax.rs:133:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m133\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let credit: i64 = row.total_credit.unwrap_or(0i64);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mexpected `i64`, found `()`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mexpected due to this\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"aborting due to 37 previous errors; 4 warnings emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 37 previous errors; 4 warnings emitted\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0308.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mSome errors have detailed explanations: E0277, E0308.\u001b[0m\n"}
|
|
{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about an error, try `rustc --explain E0277`.\u001b[0m\n"}
|