Files
boc/aamos-ledger-rust/target/debug/.fingerprint/aamos-api-3fb4377c4f5b2f18/output-bin-aamos-api
T
Bernt bae705aa97 ARCHITECTURE: NFC roadmap, edge AI, audit logging
- Add NFC ePassport roadmap (ICAO 9303, eIDAS)
- Add TensorFlow.js edge face detection (BlazeFace)
- Add structured audit logger (GDPR-compliant)
- Risk scoring support

Part of KYC Apple Native UX v1.1.0
2026-06-29 16:24:48 +00:00

69 lines
279 KiB
Plaintext

{"$message_type":"diagnostic","message":"the name `middleware` is defined multiple times","code":{"code":"E0255","explanation":"You can't import a value whose name is the same as another value defined in the\nmodule.\n\nErroneous code example:\n\n```compile_fail,E0255\nuse bar::foo; // error: an item named `foo` is already in scope\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nYou can use aliases in order to fix this error. Example:\n\n```\nuse bar::foo as bar_foo; // ok!\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nOr you can reference the item with its parent:\n\n```\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {\n bar::foo(); // we get the item by referring to its parent\n}\n```\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/main.rs","byte_start":345,"byte_end":360,"line_start":11,"line_end":11,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"mod middleware;","highlight_start":1,"highlight_end":16}],"label":"`middleware` redefined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/main.rs","byte_start":147,"byte_end":157,"line_start":5,"line_end":5,"column_start":12,"column_end":22,"is_primary":false,"text":[{"text":"use axum::{middleware, Router};","highlight_start":12,"highlight_end":22}],"label":"previous import of the module `middleware` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`middleware` must be defined only once in the type namespace of this module","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"you can use `as` to change the binding name of the import","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/main.rs","byte_start":157,"byte_end":157,"line_start":5,"line_end":5,"column_start":22,"column_end":22,"is_primary":true,"text":[{"text":"use axum::{middleware, Router};","highlight_start":22,"highlight_end":22}],"label":null,"suggested_replacement":" as other_middleware","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0255]\u001b[0m\u001b[1m: the name `middleware` is defined multiple times\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/main.rs:11:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 5\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use axum::{middleware, Router};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------\u001b[0m \u001b[1m\u001b[94mprevious import of the module `middleware` here\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m11\u001b[0m \u001b[1m\u001b[94m|\u001b[0m mod middleware;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91m`middleware` redefined here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `middleware` must be defined only once in the type namespace of this module\n\u001b[1m\u001b[96mhelp\u001b[0m: you can use `as` to change the binding name of the import\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 5\u001b[0m \u001b[1m\u001b[94m| \u001b[0muse axum::{middleware\u001b[92m as other_middleware\u001b[0m, Router};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+++++++++++++++++++\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/accounts.rs","byte_start":1080,"byte_end":1379,"line_start":45,"line_end":53,"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, name, account_type, normal_balance,","highlight_start":1,"highlight_end":82},{"text":" coa_standard, parent_account, vat_code, is_active, metadata,","highlight_start":1,"highlight_end":76},{"text":" created_at, updated_at","highlight_start":1,"highlight_end":38},{"text":" FROM ledger_accounts","highlight_start":1,"highlight_end":29},{"text":" ORDER BY account_number","highlight_start":1,"highlight_end":32},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/accounts.rs:45:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m45\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[94m46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m47\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, name, account_type, normal_balance,\n\u001b[1m\u001b[94m48\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m coa_standard, parent_account, vat_code, is_active, metadata,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m52\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m53\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/accounts.rs","byte_start":2464,"byte_end":2765,"line_start":90,"line_end":99,"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, name, account_type, normal_balance,","highlight_start":1,"highlight_end":82},{"text":" coa_standard, parent_account, vat_code, is_active, metadata,","highlight_start":1,"highlight_end":76},{"text":" created_at, updated_at","highlight_start":1,"highlight_end":38},{"text":" FROM ledger_accounts","highlight_start":1,"highlight_end":29},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/accounts.rs:90:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m90\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[94m91\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m92\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, account_number, name, account_type, normal_balance,\n\u001b[1m\u001b[94m93\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m coa_standard, parent_account, vat_code, is_active, metadata,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m98\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m99\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/accounts.rs","byte_start":3944,"byte_end":4444,"line_start":135,"line_end":151,"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_accounts","highlight_start":1,"highlight_end":36},{"text":" (id, tenant_id, account_number, name, account_type, normal_balance,","highlight_start":1,"highlight_end":78},{"text":" coa_standard, parent_account, vat_code, is_active, metadata)","highlight_start":1,"highlight_end":72},{"text":" VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, true, '{}')","highlight_start":1,"highlight_end":64},{"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.name,","highlight_start":1,"highlight_end":18},{"text":" req.account_type,","highlight_start":1,"highlight_end":26},{"text":" req.normal_balance,","highlight_start":1,"highlight_end":28},{"text":" coa_standard,","highlight_start":1,"highlight_end":22},{"text":" req.parent_account,","highlight_start":1,"highlight_end":28},{"text":" req.vat_code,","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/accounts.rs:135:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m135\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m136\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m137\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m INSERT INTO ledger_accounts\n\u001b[1m\u001b[94m138\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m (id, tenant_id, account_number, name, account_type, normal_balance,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m150\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m req.vat_code,\n\u001b[1m\u001b[94m151\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/accounts.rs","byte_start":5370,"byte_end":5930,"line_start":185,"line_end":203,"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_accounts","highlight_start":1,"highlight_end":31},{"text":" SET name = COALESCE($2, name),","highlight_start":1,"highlight_end":39},{"text":" account_type = COALESCE($3, account_type),","highlight_start":1,"highlight_end":55},{"text":" normal_balance = COALESCE($4, normal_balance),","highlight_start":1,"highlight_end":59},{"text":" parent_account = COALESCE($5, parent_account),","highlight_start":1,"highlight_end":59},{"text":" vat_code = COALESCE($6, vat_code),","highlight_start":1,"highlight_end":47},{"text":" is_active = COALESCE($7, is_active)","highlight_start":1,"highlight_end":48},{"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":" req.name,","highlight_start":1,"highlight_end":18},{"text":" req.account_type,","highlight_start":1,"highlight_end":26},{"text":" req.normal_balance,","highlight_start":1,"highlight_end":28},{"text":" req.parent_account,","highlight_start":1,"highlight_end":28},{"text":" req.vat_code,","highlight_start":1,"highlight_end":22},{"text":" req.is_active,","highlight_start":1,"highlight_end":23},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/accounts.rs:185:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m185\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m186\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m187\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m UPDATE ledger_accounts\n\u001b[1m\u001b[94m188\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SET name = COALESCE($2, name),\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m202\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m req.is_active,\n\u001b[1m\u001b[94m203\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/accounts.rs","byte_start":6209,"byte_end":6270,"line_start":215,"line_end":215,"column_start":5,"column_end":66,"is_primary":false,"text":[{"text":" sqlx::query!(\"DELETE FROM ledger_accounts WHERE id = $1\", id)","highlight_start":5,"highlight_end":66}],"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/accounts.rs:215:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m215\u001b[0m \u001b[1m\u001b[94m|\u001b[0m sqlx::query!(\"DELETE FROM ledger_accounts WHERE id = $1\", id)\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/customers.rs","byte_start":1740,"byte_end":2151,"line_start":63,"line_end":73,"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, name, org_number, vat_number, contact_name,","highlight_start":1,"highlight_end":74},{"text":" contact_email, contact_phone, address, postal_code, city,","highlight_start":1,"highlight_end":73},{"text":" country, payment_terms_days, default_vat_rate, default_account,","highlight_start":1,"highlight_end":79},{"text":" currency, notes, active, created_at, updated_at","highlight_start":1,"highlight_end":63},{"text":" FROM ledger_customers","highlight_start":1,"highlight_end":30},{"text":" WHERE active = true","highlight_start":1,"highlight_end":28},{"text":" ORDER BY name","highlight_start":1,"highlight_end":22},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/customers.rs:63:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m63\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[94m64\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m65\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, name, org_number, vat_number, contact_name,\n\u001b[1m\u001b[94m66\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m contact_email, contact_phone, address, postal_code, city,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m72\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m73\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/customers.rs","byte_start":3539,"byte_end":3934,"line_start":117,"line_end":127,"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, name, org_number, vat_number, contact_name,","highlight_start":1,"highlight_end":74},{"text":" contact_email, contact_phone, address, postal_code, city,","highlight_start":1,"highlight_end":73},{"text":" country, payment_terms_days, default_vat_rate, default_account,","highlight_start":1,"highlight_end":79},{"text":" currency, notes, active, created_at, updated_at","highlight_start":1,"highlight_end":63},{"text":" FROM ledger_customers","highlight_start":1,"highlight_end":30},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/customers.rs:117:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m117\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[94m118\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m119\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, name, org_number, vat_number, contact_name,\n\u001b[1m\u001b[94m120\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m contact_email, contact_phone, address, postal_code, city,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m126\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m127\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/customers.rs","byte_start":5337,"byte_end":6275,"line_start":169,"line_end":195,"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_customers","highlight_start":1,"highlight_end":37},{"text":" (id, tenant_id, name, org_number, vat_number, contact_name,","highlight_start":1,"highlight_end":70},{"text":" contact_email, contact_phone, address, postal_code, city,","highlight_start":1,"highlight_end":69},{"text":" country, payment_terms_days, default_vat_rate, default_account,","highlight_start":1,"highlight_end":75},{"text":" currency, notes, active)","highlight_start":1,"highlight_end":36},{"text":" VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, true)","highlight_start":1,"highlight_end":98},{"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.name,","highlight_start":1,"highlight_end":18},{"text":" req.org_number,","highlight_start":1,"highlight_end":24},{"text":" req.vat_number,","highlight_start":1,"highlight_end":24},{"text":" req.contact_name,","highlight_start":1,"highlight_end":26},{"text":" req.contact_email,","highlight_start":1,"highlight_end":27},{"text":" req.contact_phone,","highlight_start":1,"highlight_end":27},{"text":" req.address,","highlight_start":1,"highlight_end":21},{"text":" req.postal_code,","highlight_start":1,"highlight_end":25},{"text":" req.city,","highlight_start":1,"highlight_end":18},{"text":" req.country.as_deref().unwrap_or(\"SE\"),","highlight_start":1,"highlight_end":48},{"text":" req.payment_terms_days.unwrap_or(30),","highlight_start":1,"highlight_end":46},{"text":" req.default_vat_rate.unwrap_or(25),","highlight_start":1,"highlight_end":44},{"text":" req.default_account.as_deref().unwrap_or(\"3000\"),","highlight_start":1,"highlight_end":58},{"text":" req.currency.as_deref().unwrap_or(\"SEK\"),","highlight_start":1,"highlight_end":50},{"text":" req.notes,","highlight_start":1,"highlight_end":19},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/customers.rs:169:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m169\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m170\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m171\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m INSERT INTO ledger_customers\n\u001b[1m\u001b[94m172\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m (id, tenant_id, name, org_number, vat_number, contact_name,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m194\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m req.notes,\n\u001b[1m\u001b[94m195\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/customers.rs","byte_start":7572,"byte_end":8885,"line_start":236,"line_end":274,"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_customers","highlight_start":1,"highlight_end":32},{"text":" SET name = COALESCE($2, name),","highlight_start":1,"highlight_end":39},{"text":" org_number = COALESCE($3, org_number),","highlight_start":1,"highlight_end":51},{"text":" vat_number = COALESCE($4, vat_number),","highlight_start":1,"highlight_end":51},{"text":" contact_name = COALESCE($5, contact_name),","highlight_start":1,"highlight_end":55},{"text":" contact_email = COALESCE($6, contact_email),","highlight_start":1,"highlight_end":57},{"text":" contact_phone = COALESCE($7, contact_phone),","highlight_start":1,"highlight_end":57},{"text":" address = COALESCE($8, address),","highlight_start":1,"highlight_end":45},{"text":" postal_code = COALESCE($9, postal_code),","highlight_start":1,"highlight_end":53},{"text":" city = COALESCE($10, city),","highlight_start":1,"highlight_end":40},{"text":" country = COALESCE($11, country),","highlight_start":1,"highlight_end":46},{"text":" payment_terms_days = COALESCE($12, payment_terms_days),","highlight_start":1,"highlight_end":68},{"text":" default_vat_rate = COALESCE($13, default_vat_rate),","highlight_start":1,"highlight_end":64},{"text":" default_account = COALESCE($14, default_account),","highlight_start":1,"highlight_end":62},{"text":" currency = COALESCE($15, currency),","highlight_start":1,"highlight_end":48},{"text":" notes = COALESCE($16, notes),","highlight_start":1,"highlight_end":42},{"text":" active = COALESCE($17, active)","highlight_start":1,"highlight_end":43},{"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":" req.name,","highlight_start":1,"highlight_end":18},{"text":" req.org_number,","highlight_start":1,"highlight_end":24},{"text":" req.vat_number,","highlight_start":1,"highlight_end":24},{"text":" req.contact_name,","highlight_start":1,"highlight_end":26},{"text":" req.contact_email,","highlight_start":1,"highlight_end":27},{"text":" req.contact_phone,","highlight_start":1,"highlight_end":27},{"text":" req.address,","highlight_start":1,"highlight_end":21},{"text":" req.postal_code,","highlight_start":1,"highlight_end":25},{"text":" req.city,","highlight_start":1,"highlight_end":18},{"text":" req.country,","highlight_start":1,"highlight_end":21},{"text":" req.payment_terms_days,","highlight_start":1,"highlight_end":32},{"text":" req.default_vat_rate,","highlight_start":1,"highlight_end":30},{"text":" req.default_account,","highlight_start":1,"highlight_end":29},{"text":" req.currency,","highlight_start":1,"highlight_end":22},{"text":" req.notes,","highlight_start":1,"highlight_end":19},{"text":" req.active,","highlight_start":1,"highlight_end":20},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/customers.rs:236:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m236\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m237\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m238\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m UPDATE ledger_customers\n\u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SET name = COALESCE($2, name),\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m273\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m req.active,\n\u001b[1m\u001b[94m274\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/export.rs","byte_start":1670,"byte_end":2155,"line_start":65,"line_end":78,"column_start":9,"column_end":10,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":9,"highlight_end":22},{"text":" r#\"","highlight_start":1,"highlight_end":16},{"text":" SELECT e.entry_number, e.entry_date, e.description,","highlight_start":1,"highlight_end":64},{"text":" l.account_number, l.debit, l.credit","highlight_start":1,"highlight_end":55},{"text":" FROM ledger_journal_entries e","highlight_start":1,"highlight_end":42},{"text":" JOIN ledger_journal_lines l ON l.entry_id = e.id","highlight_start":1,"highlight_end":61},{"text":" WHERE e.fiscal_year = $1","highlight_start":1,"highlight_end":37},{"text":" AND e.period = $2","highlight_start":1,"highlight_end":32},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":38},{"text":" ORDER BY e.entry_date, e.entry_number","highlight_start":1,"highlight_end":50},{"text":" \"#,","highlight_start":1,"highlight_end":16},{"text":" params.fiscal_year,","highlight_start":1,"highlight_end":32},{"text":" period","highlight_start":1,"highlight_end":19},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/export.rs:65:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m65\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m66\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m67\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT e.entry_number, e.entry_date, e.description,\n\u001b[1m\u001b[94m68\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m l.account_number, l.debit, l.credit\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m77\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m period\n\u001b[1m\u001b[94m78\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/export.rs","byte_start":2224,"byte_end":2657,"line_start":82,"line_end":93,"column_start":9,"column_end":10,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":9,"highlight_end":22},{"text":" r#\"","highlight_start":1,"highlight_end":16},{"text":" SELECT e.entry_number, e.entry_date, e.description,","highlight_start":1,"highlight_end":64},{"text":" l.account_number, l.debit, l.credit","highlight_start":1,"highlight_end":55},{"text":" FROM ledger_journal_entries e","highlight_start":1,"highlight_end":42},{"text":" JOIN ledger_journal_lines l ON l.entry_id = e.id","highlight_start":1,"highlight_end":61},{"text":" WHERE e.fiscal_year = $1","highlight_start":1,"highlight_end":37},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":38},{"text":" ORDER BY e.entry_date, e.entry_number","highlight_start":1,"highlight_end":50},{"text":" \"#,","highlight_start":1,"highlight_end":16},{"text":" params.fiscal_year","highlight_start":1,"highlight_end":31},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/export.rs:82:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m82\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m83\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT e.entry_number, e.entry_date, e.description,\n\u001b[1m\u001b[94m85\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m l.account_number, l.debit, l.credit\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m92\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.fiscal_year\n\u001b[1m\u001b[94m93\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/invoices.rs","byte_start":614,"byte_end":835,"line_start":29,"line_end":36,"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 c.id, c.tenant_id, c.name, c.org_number, c.vat_number,","highlight_start":1,"highlight_end":70},{"text":" c.contact_email, c.currency, c.active","highlight_start":1,"highlight_end":53},{"text":" FROM ledger_customers c","highlight_start":1,"highlight_end":32},{"text":" ORDER BY c.name","highlight_start":1,"highlight_end":24},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/invoices.rs:29:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m29\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[94m30\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m31\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT c.id, c.tenant_id, c.name, c.org_number, c.vat_number,\n\u001b[1m\u001b[94m32\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m c.contact_email, c.currency, c.active\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m35\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m36\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/invoices.rs","byte_start":1681,"byte_end":1974,"line_start":68,"line_end":77,"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 c.id, c.tenant_id, c.name, c.org_number, c.vat_number,","highlight_start":1,"highlight_end":70},{"text":" c.contact_email, c.currency, c.active,","highlight_start":1,"highlight_end":54},{"text":" c.address, c.postal_code, c.city, c.country","highlight_start":1,"highlight_end":59},{"text":" FROM ledger_customers c","highlight_start":1,"highlight_end":32},{"text":" WHERE c.id = $1","highlight_start":1,"highlight_end":24},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/invoices.rs:68:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m68\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[94m69\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m70\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT c.id, c.tenant_id, c.name, c.org_number, c.vat_number,\n\u001b[1m\u001b[94m71\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m c.contact_email, c.currency, c.active,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m76\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m77\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":1364,"byte_end":1679,"line_start":58,"line_end":66,"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, entry_number, fiscal_year, period, entry_date,","highlight_start":1,"highlight_end":77},{"text":" description, reference, source_type, status,","highlight_start":1,"highlight_end":60},{"text":" created_at, posted_at","highlight_start":1,"highlight_end":37},{"text":" FROM ledger_journal_entries","highlight_start":1,"highlight_end":36},{"text":" ORDER BY entry_date DESC, entry_number DESC NULLS LAST","highlight_start":1,"highlight_end":63},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:58:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m58\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[94m59\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m60\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, entry_number, fiscal_year, period, entry_date,\n\u001b[1m\u001b[94m61\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m description, reference, source_type, status,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m65\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m66\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":2717,"byte_end":3003,"line_start":103,"line_end":112,"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, entry_number, fiscal_year, period, entry_date,","highlight_start":1,"highlight_end":77},{"text":" description, reference, source_type, status,","highlight_start":1,"highlight_end":60},{"text":" created_at, posted_at","highlight_start":1,"highlight_end":37},{"text":" FROM ledger_journal_entries","highlight_start":1,"highlight_end":36},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:103:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m103\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[94m104\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m105\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, entry_number, fiscal_year, period, entry_date,\n\u001b[1m\u001b[94m106\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m description, reference, source_type, status,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m111\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m112\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":3119,"byte_end":3415,"line_start":117,"line_end":126,"column_start":17,"column_end":6,"is_primary":false,"text":[{"text":" let lines = sqlx::query!(","highlight_start":17,"highlight_end":30},{"text":" r#\"","highlight_start":1,"highlight_end":12},{"text":" SELECT id, line_number, account_number, account_name, debit, credit,","highlight_start":1,"highlight_end":77},{"text":" currency, vat_code, cost_center, project_code, description","highlight_start":1,"highlight_end":74},{"text":" FROM ledger_journal_lines","highlight_start":1,"highlight_end":34},{"text":" WHERE entry_id = $1","highlight_start":1,"highlight_end":28},{"text":" ORDER BY line_number","highlight_start":1,"highlight_end":29},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:117:17\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m117\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let lines = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _________________^\u001b[0m\n\u001b[1m\u001b[94m118\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m119\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, line_number, account_number, account_name, debit, credit,\n\u001b[1m\u001b[94m120\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m currency, vat_code, cost_center, project_code, description\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m125\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m126\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":5700,"byte_end":6339,"line_start":189,"line_end":208,"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_journal_entries","highlight_start":1,"highlight_end":43},{"text":" (id, tenant_id, entry_number, fiscal_year, period, entry_date,","highlight_start":1,"highlight_end":73},{"text":" description, reference, source_type, status, trace_id, correlation_id,","highlight_start":1,"highlight_end":82},{"text":" user_id, decision_source, metadata)","highlight_start":1,"highlight_end":47},{"text":" VALUES ($1, $2, nextval('ledger_entry_number_seq'), $3, $4, $5, $6, $7, $8,","highlight_start":1,"highlight_end":84},{"text":" 'draft', $9, $10, 'api-user', 'user', '{}')","highlight_start":1,"highlight_end":60},{"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":" fiscal_year,","highlight_start":1,"highlight_end":21},{"text":" period,","highlight_start":1,"highlight_end":16},{"text":" entry_date,","highlight_start":1,"highlight_end":20},{"text":" req.description,","highlight_start":1,"highlight_end":25},{"text":" req.reference,","highlight_start":1,"highlight_end":23},{"text":" req.source_type,","highlight_start":1,"highlight_end":25},{"text":" trace_id,","highlight_start":1,"highlight_end":18},{"text":" correlation_id,","highlight_start":1,"highlight_end":24},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:189:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m189\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m190\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m191\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m INSERT INTO ledger_journal_entries\n\u001b[1m\u001b[94m192\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m (id, tenant_id, entry_number, fiscal_year, period, entry_date,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m207\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m correlation_id,\n\u001b[1m\u001b[94m208\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":6530,"byte_end":7170,"line_start":215,"line_end":233,"column_start":9,"column_end":10,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":9,"highlight_end":22},{"text":" r#\"","highlight_start":1,"highlight_end":16},{"text":" INSERT INTO ledger_journal_lines","highlight_start":1,"highlight_end":45},{"text":" (id, entry_id, tenant_id, line_number, account_number, debit, credit,","highlight_start":1,"highlight_end":84},{"text":" currency, vat_code, cost_center, project_code, description, metadata)","highlight_start":1,"highlight_end":85},{"text":" VALUES ($1, $2, $3, $4, $5, $6, $7, 'SEK', $8, $9, $10, $11, '{}')","highlight_start":1,"highlight_end":79},{"text":" \"#,","highlight_start":1,"highlight_end":16},{"text":" line_id,","highlight_start":1,"highlight_end":21},{"text":" id,","highlight_start":1,"highlight_end":16},{"text":" req.tenant_id,","highlight_start":1,"highlight_end":27},{"text":" (i + 1) as i32,","highlight_start":1,"highlight_end":28},{"text":" line.account_number,","highlight_start":1,"highlight_end":33},{"text":" line.debit,","highlight_start":1,"highlight_end":24},{"text":" line.credit,","highlight_start":1,"highlight_end":25},{"text":" line.vat_code,","highlight_start":1,"highlight_end":27},{"text":" line.cost_center,","highlight_start":1,"highlight_end":30},{"text":" line.project_code,","highlight_start":1,"highlight_end":31},{"text":" line.description,","highlight_start":1,"highlight_end":30},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:215:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m215\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m216\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m217\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m INSERT INTO ledger_journal_lines\n\u001b[1m\u001b[94m218\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m (id, entry_id, tenant_id, line_number, account_number, debit, credit,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m232\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m line.description,\n\u001b[1m\u001b[94m233\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":7633,"byte_end":7777,"line_start":250,"line_end":254,"column_start":9,"column_end":10,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":9,"highlight_end":22},{"text":" \"UPDATE ledger_journal_entries SET description = $2 WHERE id = $1\",","highlight_start":1,"highlight_end":80},{"text":" id,","highlight_start":1,"highlight_end":16},{"text":" description,","highlight_start":1,"highlight_end":25},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:250:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m250\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m251\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_journal_entries SET description = $2 WHERE id = $1\",\n\u001b[1m\u001b[94m252\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id,\n\u001b[1m\u001b[94m253\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m description,\n\u001b[1m\u001b[94m254\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":7941,"byte_end":8081,"line_start":261,"line_end":265,"column_start":9,"column_end":10,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":9,"highlight_end":22},{"text":" \"UPDATE ledger_journal_entries SET reference = $2 WHERE id = $1\",","highlight_start":1,"highlight_end":78},{"text":" id,","highlight_start":1,"highlight_end":16},{"text":" reference,","highlight_start":1,"highlight_end":23},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:261:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m261\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_journal_entries SET reference = $2 WHERE id = $1\",\n\u001b[1m\u001b[94m263\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id,\n\u001b[1m\u001b[94m264\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m reference,\n\u001b[1m\u001b[94m265\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":8237,"byte_end":8309,"line_start":272,"line_end":272,"column_start":9,"column_end":81,"is_primary":false,"text":[{"text":" sqlx::query!(\"DELETE FROM ledger_journal_lines WHERE entry_id = $1\", id)","highlight_start":9,"highlight_end":81}],"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:272:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m272\u001b[0m \u001b[1m\u001b[94m|\u001b[0m sqlx::query!(\"DELETE FROM ledger_journal_lines WHERE entry_id = $1\", id)\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":8446,"byte_end":8558,"line_start":277,"line_end":280,"column_start":21,"column_end":10,"is_primary":false,"text":[{"text":" let entry = sqlx::query!(","highlight_start":21,"highlight_end":34},{"text":" \"SELECT tenant_id FROM ledger_journal_entries WHERE id = $1\",","highlight_start":1,"highlight_end":74},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:277:21\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m277\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let entry = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _____________________^\u001b[0m\n\u001b[1m\u001b[94m278\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"SELECT tenant_id FROM ledger_journal_entries WHERE id = $1\",\n\u001b[1m\u001b[94m279\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id\n\u001b[1m\u001b[94m280\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":8771,"byte_end":9485,"line_start":287,"line_end":305,"column_start":13,"column_end":14,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":13,"highlight_end":26},{"text":" r#\"","highlight_start":1,"highlight_end":20},{"text":" INSERT INTO ledger_journal_lines","highlight_start":1,"highlight_end":49},{"text":" (id, entry_id, tenant_id, line_number, account_number, debit, credit,","highlight_start":1,"highlight_end":88},{"text":" currency, vat_code, cost_center, project_code, description, metadata)","highlight_start":1,"highlight_end":89},{"text":" VALUES ($1, $2, $3, $4, $5, $6, $7, 'SEK', $8, $9, $10, $11, '{}')","highlight_start":1,"highlight_end":83},{"text":" \"#,","highlight_start":1,"highlight_end":20},{"text":" line_id,","highlight_start":1,"highlight_end":25},{"text":" id,","highlight_start":1,"highlight_end":20},{"text":" entry.tenant_id,","highlight_start":1,"highlight_end":33},{"text":" (i + 1) as i32,","highlight_start":1,"highlight_end":32},{"text":" line.account_number,","highlight_start":1,"highlight_end":37},{"text":" line.debit,","highlight_start":1,"highlight_end":28},{"text":" line.credit,","highlight_start":1,"highlight_end":29},{"text":" line.vat_code,","highlight_start":1,"highlight_end":31},{"text":" line.cost_center,","highlight_start":1,"highlight_end":34},{"text":" line.project_code,","highlight_start":1,"highlight_end":35},{"text":" line.description,","highlight_start":1,"highlight_end":34},{"text":" )","highlight_start":1,"highlight_end":14}],"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:287:13\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m287\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m288\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m289\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m INSERT INTO ledger_journal_lines\n\u001b[1m\u001b[94m290\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m (id, entry_id, tenant_id, line_number, account_number, debit, credit,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m304\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m line.description,\n\u001b[1m\u001b[94m305\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":9800,"byte_end":9868,"line_start":319,"line_end":319,"column_start":5,"column_end":73,"is_primary":false,"text":[{"text":" sqlx::query!(\"DELETE FROM ledger_journal_entries WHERE id = $1\", id)","highlight_start":5,"highlight_end":73}],"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:319:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m319\u001b[0m \u001b[1m\u001b[94m|\u001b[0m sqlx::query!(\"DELETE FROM ledger_journal_entries WHERE id = $1\", id)\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":10183,"byte_end":10326,"line_start":332,"line_end":336,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" \"UPDATE ledger_journal_entries SET status = 'posted', posted_at = $2 WHERE id = $1\",","highlight_start":1,"highlight_end":93},{"text":" id,","highlight_start":1,"highlight_end":12},{"text":" posted_at,","highlight_start":1,"highlight_end":19},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:332:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m332\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m333\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_journal_entries SET status = 'posted', posted_at = $2 WHERE id = $1\",\n\u001b[1m\u001b[94m334\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id,\n\u001b[1m\u001b[94m335\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m posted_at,\n\u001b[1m\u001b[94m336\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/journal.rs","byte_start":10681,"byte_end":10923,"line_start":350,"line_end":359,"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_journal_entries","highlight_start":1,"highlight_end":38},{"text":" SET status = 'voided', void_reason = $2, voided_at = $3, voided_by = 'api-user'","highlight_start":1,"highlight_end":88},{"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":" req.reason,","highlight_start":1,"highlight_end":20},{"text":" voided_at,","highlight_start":1,"highlight_end":19},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:350:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m350\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m351\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m352\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m UPDATE ledger_journal_entries\n\u001b[1m\u001b[94m353\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SET status = 'voided', void_reason = $2, voided_at = $3, voided_by = 'api-user'\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m358\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m voided_at,\n\u001b[1m\u001b[94m359\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":638,"byte_end":909,"line_start":31,"line_end":38,"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, fiscal_year, period, status, opened_at, closed_at,","highlight_start":1,"highlight_end":81},{"text":" closed_by, workflow_id, trial_balance, trace_id, metadata","highlight_start":1,"highlight_end":73},{"text":" FROM ledger_periods","highlight_start":1,"highlight_end":28},{"text":" ORDER BY fiscal_year DESC, period DESC","highlight_start":1,"highlight_end":47},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:31:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m31\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[94m32\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m33\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, fiscal_year, period, status, opened_at, closed_at,\n\u001b[1m\u001b[94m34\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m closed_by, workflow_id, trial_balance, trace_id, metadata\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m37\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"#\n\u001b[1m\u001b[94m38\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":1919,"byte_end":2185,"line_start":74,"line_end":82,"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, fiscal_year, period, status, opened_at, closed_at,","highlight_start":1,"highlight_end":81},{"text":" closed_by, workflow_id, trial_balance, trace_id, metadata","highlight_start":1,"highlight_end":73},{"text":" FROM ledger_periods","highlight_start":1,"highlight_end":28},{"text":" WHERE period = $1","highlight_start":1,"highlight_end":26},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" period","highlight_start":1,"highlight_end":15},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:74:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m74\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[94m75\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m76\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT id, tenant_id, fiscal_year, period, status, opened_at, closed_at,\n\u001b[1m\u001b[94m77\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m closed_by, workflow_id, trial_balance, trace_id, metadata\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m81\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m period\n\u001b[1m\u001b[94m82\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":3241,"byte_end":3542,"line_start":117,"line_end":128,"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_periods","highlight_start":1,"highlight_end":35},{"text":" (id, tenant_id, fiscal_year, period, status, trace_id, metadata)","highlight_start":1,"highlight_end":75},{"text":" VALUES ($1, $2, $3, $4, 'open', $5, '{}')","highlight_start":1,"highlight_end":50},{"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.fiscal_year,","highlight_start":1,"highlight_end":25},{"text":" req.period,","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:117:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m117\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m118\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m119\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m INSERT INTO ledger_periods\n\u001b[1m\u001b[94m120\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m (id, tenant_id, fiscal_year, period, status, trace_id, metadata)\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m127\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m trace_id,\n\u001b[1m\u001b[94m128\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":4172,"byte_end":4277,"line_start":156,"line_end":159,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" \"UPDATE ledger_periods SET status = 'open' WHERE period = $1\",","highlight_start":1,"highlight_end":71},{"text":" period","highlight_start":1,"highlight_end":15},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:156:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m156\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m157\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_periods SET status = 'open' WHERE period = $1\",\n\u001b[1m\u001b[94m158\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m period\n\u001b[1m\u001b[94m159\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":4574,"byte_end":4681,"line_start":171,"line_end":174,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" \"UPDATE ledger_periods SET status = 'review' WHERE period = $1\",","highlight_start":1,"highlight_end":73},{"text":" period","highlight_start":1,"highlight_end":15},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:171:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m171\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m172\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_periods SET status = 'review' WHERE period = $1\",\n\u001b[1m\u001b[94m173\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m period\n\u001b[1m\u001b[94m174\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":4979,"byte_end":5088,"line_start":186,"line_end":189,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" \"UPDATE ledger_periods SET status = 'approved' WHERE period = $1\",","highlight_start":1,"highlight_end":75},{"text":" period","highlight_start":1,"highlight_end":15},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:186:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m186\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m187\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_periods SET status = 'approved' WHERE period = $1\",\n\u001b[1m\u001b[94m188\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m period\n\u001b[1m\u001b[94m189\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":5385,"byte_end":5490,"line_start":201,"line_end":204,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" \"UPDATE ledger_periods SET status = 'open' WHERE period = $1\",","highlight_start":1,"highlight_end":71},{"text":" period","highlight_start":1,"highlight_end":15},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:201:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m201\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m202\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_periods SET status = 'open' WHERE period = $1\",\n\u001b[1m\u001b[94m203\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m period\n\u001b[1m\u001b[94m204\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":5818,"byte_end":5985,"line_start":217,"line_end":221,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" \"UPDATE ledger_periods SET status = 'closed', closed_at = $2, closed_by = 'api-user' WHERE period = $1\",","highlight_start":1,"highlight_end":113},{"text":" period,","highlight_start":1,"highlight_end":16},{"text":" closed_at,","highlight_start":1,"highlight_end":19},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:217:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m217\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m218\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_periods SET status = 'closed', closed_at = $2, closed_by = 'api-user' WHERE period = $1\",\n\u001b[1m\u001b[94m219\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m period,\n\u001b[1m\u001b[94m220\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m closed_at,\n\u001b[1m\u001b[94m221\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/periods.rs","byte_start":6282,"byte_end":6423,"line_start":233,"line_end":236,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" \"UPDATE ledger_periods SET status = 'open', closed_at = NULL, closed_by = NULL WHERE period = $1\",","highlight_start":1,"highlight_end":107},{"text":" period","highlight_start":1,"highlight_end":15},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/periods.rs:233:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m233\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m234\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_periods SET status = 'open', closed_at = NULL, closed_by = NULL WHERE period = $1\",\n\u001b[1m\u001b[94m235\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m period\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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":5443,"byte_end":5603,"line_start":192,"line_end":196,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" sqlx::query!(","highlight_start":5,"highlight_end":18},{"text":" \"UPDATE ledger_reconciliation_sessions SET status = 'completed', completed_at = $2 WHERE id = $1\",","highlight_start":1,"highlight_end":107},{"text":" id,","highlight_start":1,"highlight_end":12},{"text":" completed_at,","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reconciliation.rs:192:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m192\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m sqlx::query!(\n\u001b[1m\u001b[94m193\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"UPDATE ledger_reconciliation_sessions SET status = 'completed', completed_at = $2 WHERE id = $1\",\n\u001b[1m\u001b[94m194\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m id,\n\u001b[1m\u001b[94m195\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m completed_at,\n\u001b[1m\u001b[94m196\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/reports.rs","byte_start":642,"byte_end":1239,"line_start":33,"line_end":50,"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":" a.name as account_name,","highlight_start":1,"highlight_end":34},{"text":" a.account_type,","highlight_start":1,"highlight_end":26},{"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":" LEFT JOIN ledger_accounts a ON a.account_number = l.account_number","highlight_start":1,"highlight_end":75},{"text":" WHERE e.period = $1","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" GROUP BY l.account_number, a.name, a.account_type","highlight_start":1,"highlight_end":58},{"text":" ORDER BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reports.rs:33:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m33\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[94m34\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m35\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m36\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[94m49\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m50\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/reports.rs","byte_start":2830,"byte_end":3427,"line_start":105,"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":" a.name as account_name,","highlight_start":1,"highlight_end":34},{"text":" a.account_type,","highlight_start":1,"highlight_end":26},{"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":" LEFT JOIN ledger_accounts a ON a.account_number = l.account_number","highlight_start":1,"highlight_end":75},{"text":" WHERE e.period = $1","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" GROUP BY l.account_number, a.name, a.account_type","highlight_start":1,"highlight_end":58},{"text":" ORDER BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reports.rs:105:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m105\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[94m106\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m107\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m108\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/reports.rs","byte_start":5071,"byte_end":5502,"line_start":175,"line_end":192,"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":" e.id,","highlight_start":1,"highlight_end":16},{"text":" e.entry_number,","highlight_start":1,"highlight_end":26},{"text":" e.entry_date,","highlight_start":1,"highlight_end":24},{"text":" e.description,","highlight_start":1,"highlight_end":25},{"text":" e.reference,","highlight_start":1,"highlight_end":23},{"text":" e.status","highlight_start":1,"highlight_end":19},{"text":" FROM ledger_journal_entries e","highlight_start":1,"highlight_end":38},{"text":" WHERE e.entry_date >= $1","highlight_start":1,"highlight_end":33},{"text":" AND e.entry_date <= $2","highlight_start":1,"highlight_end":33},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" ORDER BY e.entry_date DESC, e.entry_number DESC NULLS LAST","highlight_start":1,"highlight_end":67},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"text":" from_date,","highlight_start":1,"highlight_end":19},{"text":" to_date","highlight_start":1,"highlight_end":16},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reports.rs:175:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m175\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[94m176\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m177\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m e.id,\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m191\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m to_date\n\u001b[1m\u001b[94m192\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/reports.rs","byte_start":5670,"byte_end":5910,"line_start":200,"line_end":208,"column_start":21,"column_end":10,"is_primary":false,"text":[{"text":" let lines = sqlx::query!(","highlight_start":21,"highlight_end":34},{"text":" r#\"","highlight_start":1,"highlight_end":16},{"text":" SELECT account_number, account_name, debit, credit","highlight_start":1,"highlight_end":63},{"text":" FROM ledger_journal_lines","highlight_start":1,"highlight_end":38},{"text":" WHERE entry_id = $1","highlight_start":1,"highlight_end":32},{"text":" ORDER BY line_number","highlight_start":1,"highlight_end":33},{"text":" \"#,","highlight_start":1,"highlight_end":16},{"text":" row.id","highlight_start":1,"highlight_end":19},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reports.rs:200:21\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m200\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let lines = sqlx::query!(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m _____________________^\u001b[0m\n\u001b[1m\u001b[94m201\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m202\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT account_number, account_name, debit, credit\n\u001b[1m\u001b[94m203\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m FROM ledger_journal_lines\n\u001b[1m\u001b[94m...\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n\u001b[1m\u001b[94m207\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m row.id\n\u001b[1m\u001b[94m208\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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/reports.rs","byte_start":7027,"byte_end":7582,"line_start":248,"line_end":264,"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":" a.name as account_name,","highlight_start":1,"highlight_end":34},{"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":" LEFT JOIN ledger_accounts a ON a.account_number = l.account_number","highlight_start":1,"highlight_end":75},{"text":" WHERE e.period = $1","highlight_start":1,"highlight_end":28},{"text":" AND e.status = 'posted'","highlight_start":1,"highlight_end":34},{"text":" GROUP BY l.account_number, a.name","highlight_start":1,"highlight_end":42},{"text":" ORDER BY l.account_number","highlight_start":1,"highlight_end":34},{"text":" \"#,","highlight_start":1,"highlight_end":12},{"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/reports.rs:248:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m248\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[94m249\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m r#\"\n\u001b[1m\u001b[94m250\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m SELECT\n\u001b[1m\u001b[94m251\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[94m263\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m params.period\n\u001b[1m\u001b[94m264\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache","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":2998,"byte_end":3526,"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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache\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":"cannot find type `NextFn` in module `axum::middleware`","code":{"code":"E0425","explanation":"An unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.9/src/middleware/from_fn.rs","byte_start":9062,"byte_end":9077,"line_start":335,"line_end":335,"column_start":1,"column_end":16,"is_primary":false,"text":[{"text":"pub struct Next {","highlight_start":1,"highlight_end":16}],"label":"similarly named struct `Next` defined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/middleware/rbac.rs","byte_start":503,"byte_end":509,"line_start":22,"line_end":22,"column_start":45,"column_end":51,"is_primary":true,"text":[{"text":"pub fn require_admin() -> axum::middleware::NextFn {","highlight_start":45,"highlight_end":51}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a struct with a similar name exists","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/middleware/rbac.rs","byte_start":503,"byte_end":509,"line_start":22,"line_end":22,"column_start":45,"column_end":51,"is_primary":true,"text":[{"text":"pub fn require_admin() -> axum::middleware::NextFn {","highlight_start":45,"highlight_end":51}],"label":null,"suggested_replacement":"Next","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0425]\u001b[0m\u001b[1m: cannot find type `NextFn` in module `axum::middleware`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/middleware/rbac.rs:22:45\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn require_admin() -> axum::middleware::NextFn {\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/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.9/src/middleware/from_fn.rs:335:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m335\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Next {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------\u001b[0m \u001b[1m\u001b[94msimilarly named struct `Next` defined here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: a struct with a similar name exists\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 22\u001b[0m \u001b[91m- \u001b[0mpub fn require_admin() -> axum::middleware::\u001b[91mNextFn\u001b[0m {\n\u001b[1m\u001b[94m 22\u001b[0m \u001b[92m+ \u001b[0mpub fn require_admin() -> axum::middleware::\u001b[92mNext\u001b[0m {\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"cannot find type `NextFn` in module `axum::middleware`","code":{"code":"E0425","explanation":"An unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.9/src/middleware/from_fn.rs","byte_start":9062,"byte_end":9077,"line_start":335,"line_end":335,"column_start":1,"column_end":16,"is_primary":false,"text":[{"text":"pub struct Next {","highlight_start":1,"highlight_end":16}],"label":"similarly named struct `Next` defined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/middleware/rbac.rs","byte_start":725,"byte_end":731,"line_start":28,"line_end":28,"column_start":59,"column_end":65,"is_primary":true,"text":[{"text":"pub fn require_accountant_or_admin() -> axum::middleware::NextFn {","highlight_start":59,"highlight_end":65}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a struct with a similar name exists","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/middleware/rbac.rs","byte_start":725,"byte_end":731,"line_start":28,"line_end":28,"column_start":59,"column_end":65,"is_primary":true,"text":[{"text":"pub fn require_accountant_or_admin() -> axum::middleware::NextFn {","highlight_start":59,"highlight_end":65}],"label":null,"suggested_replacement":"Next","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0425]\u001b[0m\u001b[1m: cannot find type `NextFn` in module `axum::middleware`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/middleware/rbac.rs:28:59\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 28\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn require_accountant_or_admin() -> axum::middleware::NextFn {\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/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.9/src/middleware/from_fn.rs:335:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m335\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Next {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------\u001b[0m \u001b[1m\u001b[94msimilarly named struct `Next` defined here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: a struct with a similar name exists\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 28\u001b[0m \u001b[91m- \u001b[0mpub fn require_accountant_or_admin() -> axum::middleware::\u001b[91mNextFn\u001b[0m {\n\u001b[1m\u001b[94m 28\u001b[0m \u001b[92m+ \u001b[0mpub fn require_accountant_or_admin() -> axum::middleware::\u001b[92mNext\u001b[0m {\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"cannot find type `NextFn` in module `axum::middleware`","code":{"code":"E0425","explanation":"An unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.9/src/middleware/from_fn.rs","byte_start":9062,"byte_end":9077,"line_start":335,"line_end":335,"column_start":1,"column_end":16,"is_primary":false,"text":[{"text":"pub struct Next {","highlight_start":1,"highlight_end":16}],"label":"similarly named struct `Next` defined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/middleware/rbac.rs","byte_start":961,"byte_end":967,"line_start":34,"line_end":34,"column_start":55,"column_end":61,"is_primary":true,"text":[{"text":"pub fn require_viewer_or_above() -> axum::middleware::NextFn {","highlight_start":55,"highlight_end":61}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a struct with a similar name exists","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/middleware/rbac.rs","byte_start":961,"byte_end":967,"line_start":34,"line_end":34,"column_start":55,"column_end":61,"is_primary":true,"text":[{"text":"pub fn require_viewer_or_above() -> axum::middleware::NextFn {","highlight_start":55,"highlight_end":61}],"label":null,"suggested_replacement":"Next","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0425]\u001b[0m\u001b[1m: cannot find type `NextFn` in module `axum::middleware`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/middleware/rbac.rs:34:55\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 34\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn require_viewer_or_above() -> axum::middleware::NextFn {\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/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.9/src/middleware/from_fn.rs:335:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m335\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Next {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------\u001b[0m \u001b[1m\u001b[94msimilarly named struct `Next` defined here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: a struct with a similar name exists\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 34\u001b[0m \u001b[91m- \u001b[0mpub fn require_viewer_or_above() -> axum::middleware::\u001b[91mNextFn\u001b[0m {\n\u001b[1m\u001b[94m 34\u001b[0m \u001b[92m+ \u001b[0mpub fn require_viewer_or_above() -> axum::middleware::\u001b[92mNext\u001b[0m {\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"cannot find type `NextFn` in module `axum::middleware`","code":{"code":"E0425","explanation":"An unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.9/src/middleware/from_fn.rs","byte_start":9062,"byte_end":9077,"line_start":335,"line_end":335,"column_start":1,"column_end":16,"is_primary":false,"text":[{"text":"pub struct Next {","highlight_start":1,"highlight_end":16}],"label":"similarly named struct `Next` defined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/middleware/rbac.rs","byte_start":1295,"byte_end":1301,"line_start":46,"line_end":46,"column_start":56,"column_end":62,"is_primary":true,"text":[{"text":"pub fn require_payroll_or_admin() -> axum::middleware::NextFn {","highlight_start":56,"highlight_end":62}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a struct with a similar name exists","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/middleware/rbac.rs","byte_start":1295,"byte_end":1301,"line_start":46,"line_end":46,"column_start":56,"column_end":62,"is_primary":true,"text":[{"text":"pub fn require_payroll_or_admin() -> axum::middleware::NextFn {","highlight_start":56,"highlight_end":62}],"label":null,"suggested_replacement":"Next","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0425]\u001b[0m\u001b[1m: cannot find type `NextFn` in module `axum::middleware`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/middleware/rbac.rs:46:56\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 46\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn require_payroll_or_admin() -> axum::middleware::NextFn {\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/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.9/src/middleware/from_fn.rs:335:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m335\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Next {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------\u001b[0m \u001b[1m\u001b[94msimilarly named struct `Next` defined here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: a struct with a similar name exists\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 46\u001b[0m \u001b[91m- \u001b[0mpub fn require_payroll_or_admin() -> axum::middleware::\u001b[91mNextFn\u001b[0m {\n\u001b[1m\u001b[94m 46\u001b[0m \u001b[92m+ \u001b[0mpub fn require_payroll_or_admin() -> axum::middleware::\u001b[92mNext\u001b[0m {\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unused imports: `Router` and `middleware`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"crates/aamos-api/src/main.rs","byte_start":147,"byte_end":157,"line_start":5,"line_end":5,"column_start":12,"column_end":22,"is_primary":true,"text":[{"text":"use axum::{middleware, Router};","highlight_start":12,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"crates/aamos-api/src/main.rs","byte_start":159,"byte_end":165,"line_start":5,"line_end":5,"column_start":24,"column_end":30,"is_primary":true,"text":[{"text":"use axum::{middleware, Router};","highlight_start":24,"highlight_end":30}],"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":168,"line_start":5,"line_end":6,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use axum::{middleware, Router};","highlight_start":1,"highlight_end":32},{"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 imports: `Router` and `middleware`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/main.rs:5:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m5\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use axum::{middleware, Router};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^\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":"method `year` is private","code":{"code":"E0624","explanation":"A private item was used outside of its scope.\n\nErroneous code example:\n\n```compile_fail,E0624\nmod inner {\n pub struct Foo;\n\n impl Foo {\n fn method(&self) {}\n }\n}\n\nlet foo = inner::Foo;\nfoo.method(); // error: method `method` is private\n```\n\nTwo possibilities are available to solve this issue:\n\n1. Only use the item in the scope it has been defined:\n\n```\nmod inner {\n pub struct Foo;\n\n impl Foo {\n fn method(&self) {}\n }\n\n pub fn call_method(foo: &Foo) { // We create a public function.\n foo.method(); // Which calls the item.\n }\n}\n\nlet foo = inner::Foo;\ninner::call_method(&foo); // And since the function is public, we can call the\n // method through it.\n```\n\n2. Make the item public:\n\n```\nmod inner {\n pub struct Foo;\n\n impl Foo {\n pub fn method(&self) {} // It's now public.\n }\n}\n\nlet foo = inner::Foo;\nfoo.method(); // Ok!\n```\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/journal.rs","byte_start":5613,"byte_end":5617,"line_start":186,"line_end":186,"column_start":34,"column_end":38,"is_primary":true,"text":[{"text":" let fiscal_year = entry_date.year();","highlight_start":34,"highlight_end":38}],"label":"private method","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.45/src/naive/date/mod.rs","byte_start":53122,"byte_end":53149,"line_start":1409,"line_end":1409,"column_start":5,"column_end":32,"is_primary":false,"text":[{"text":" const fn year(&self) -> i32 {","highlight_start":5,"highlight_end":32}],"label":"private method defined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Datelike` which provides `year` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/journal.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use axum::{","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use chrono::Datelike;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0624]\u001b[0m\u001b[1m: method `year` is private\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:186:34\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 186\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let fiscal_year = entry_date.year();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mprivate method\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.45/src/naive/date/mod.rs:1409:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1409\u001b[0m \u001b[1m\u001b[94m|\u001b[0m const fn year(&self) -> i32 {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------\u001b[0m \u001b[1m\u001b[94mprivate method defined here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Datelike` which provides `year` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 1\u001b[0m \u001b[92m+ use chrono::Datelike;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"method `month` is private","code":{"code":"E0624","explanation":"A private item was used outside of its scope.\n\nErroneous code example:\n\n```compile_fail,E0624\nmod inner {\n pub struct Foo;\n\n impl Foo {\n fn method(&self) {}\n }\n}\n\nlet foo = inner::Foo;\nfoo.method(); // error: method `method` is private\n```\n\nTwo possibilities are available to solve this issue:\n\n1. Only use the item in the scope it has been defined:\n\n```\nmod inner {\n pub struct Foo;\n\n impl Foo {\n fn method(&self) {}\n }\n\n pub fn call_method(foo: &Foo) { // We create a public function.\n foo.method(); // Which calls the item.\n }\n}\n\nlet foo = inner::Foo;\ninner::call_method(&foo); // And since the function is public, we can call the\n // method through it.\n```\n\n2. Make the item public:\n\n```\nmod inner {\n pub struct Foo;\n\n impl Foo {\n pub fn method(&self) {} // It's now public.\n }\n}\n\nlet foo = inner::Foo;\nfoo.method(); // Ok!\n```\n"},"level":"error","spans":[{"file_name":"crates/aamos-api/src/routes/journal.rs","byte_start":5685,"byte_end":5690,"line_start":187,"line_end":187,"column_start":65,"column_end":70,"is_primary":true,"text":[{"text":" let period = format!(\"{:04}-{:02}\", fiscal_year, entry_date.month());","highlight_start":65,"highlight_end":70}],"label":"private method","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.45/src/naive/date/mod.rs","byte_start":53533,"byte_end":53561,"line_start":1422,"line_end":1422,"column_start":5,"column_end":33,"is_primary":false,"text":[{"text":" const fn month(&self) -> u32 {","highlight_start":5,"highlight_end":33}],"label":"private method defined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Datelike` which provides `month` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"crates/aamos-api/src/routes/journal.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use axum::{","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use chrono::Datelike;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0624]\u001b[0m\u001b[1m: method `month` is private\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0mcrates/aamos-api/src/routes/journal.rs:187:65\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 187\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let period = format!(\"{:04}-{:02}\", fiscal_year, entry_date.month());\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91mprivate method\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/bernt/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.45/src/naive/date/mod.rs:1422:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1422\u001b[0m \u001b[1m\u001b[94m|\u001b[0m const fn month(&self) -> u32 {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------------\u001b[0m \u001b[1m\u001b[94mprivate method defined here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Datelike` which provides `month` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 1\u001b[0m \u001b[92m+ use chrono::Datelike;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"aborting due to 61 previous errors; 4 warnings emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 61 previous errors; 4 warnings emitted\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0255, E0425, E0624.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mSome errors have detailed explanations: E0255, E0425, E0624.\u001b[0m\n"}
{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0255`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about an error, try `rustc --explain E0255`.\u001b[0m\n"}