[INFO] cloning repository https://github.com/Dinesh417G/Electronix_tools_store
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Dinesh417G/Electronix_tools_store" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDinesh417G%2FElectronix_tools_store", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDinesh417G%2FElectronix_tools_store'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 68f2fe5914c465154f15af9a5c1790f4bda719ef
[INFO] checking Dinesh417G/Electronix_tools_store against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6+rustflags=-Znext-solver=coherence for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDinesh417G%2FElectronix_tools_store" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Dinesh417G/Electronix_tools_store
[INFO] finished tweaking git repo https://github.com/Dinesh417G/Electronix_tools_store
[INFO] tweaked toml for git repo https://github.com/Dinesh417G/Electronix_tools_store written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Dinesh417G/Electronix_tools_store on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Dinesh417G/Electronix_tools_store already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rust_decimal_macros v1.40.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1
[INFO] running `Command { std: "docker" "start" "afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Znext-solver=coherence" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_derive v1.0.229
[INFO] [stderr]    Compiling displaydoc v0.2.7
[INFO] [stderr]    Compiling thiserror-impl v2.0.19
[INFO] [stderr]    Compiling tokio-macros v2.7.2
[INFO] [stderr]     Checking futures-util v0.3.33
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling rust_decimal v1.42.1
[INFO] [stderr]    Compiling rustls v0.23.43
[INFO] [stderr]     Checking uuid v1.24.0
[INFO] [stderr]     Checking generic-array v0.14.7
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling async-trait v0.1.91
[INFO] [stderr]    Compiling futures-core v0.3.33
[INFO] [stderr]     Checking ring v0.17.14
[INFO] [stderr]    Compiling zerocopy v0.8.56
[INFO] [stderr]    Compiling mio v1.2.2
[INFO] [stderr]    Compiling futures-sink v0.3.33
[INFO] [stderr]     Checking crypto-common v0.1.7
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling tinyvec v1.12.0
[INFO] [stderr]     Checking potential_utf v0.1.5
[INFO] [stderr]    Compiling tokio v1.53.1
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling crossbeam-utils v0.8.22
[INFO] [stderr]     Checking tinystr v0.8.3
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]    Compiling icu_collections v2.2.0
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]    Compiling arrayvec v0.7.8
[INFO] [stderr]    Compiling futures-task v0.3.33
[INFO] [stderr]    Compiling futures-io v0.3.33
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling unicode-normalization v0.1.25
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling crossbeam-queue v0.3.13
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]     Checking rustls-webpki v0.103.13
[INFO] [stderr]     Checking hashbrown v0.15.5
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling futures-channel v0.3.33
[INFO] [stderr]    Compiling whoami v1.6.1
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking thiserror v2.0.19
[INFO] [stderr]     Checking ipnet v2.12.1
[INFO] [stderr]     Checking rand v0.8.7
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]     Checking home v0.5.12
[INFO] [stderr]     Checking password-hash v0.5.0
[INFO] [stderr]     Checking blake2 v0.10.6
[INFO] [stderr]     Checking axum-core v0.5.6
[INFO] [stderr]    Compiling axum-macros v0.5.1
[INFO] [stderr]     Checking serde_path_to_error v0.1.20
[INFO] [stderr]     Checking matchit v0.8.4
[INFO] [stderr]     Checking argon2 v0.5.3
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling const-oid v0.10.2
[INFO] [stderr]    Compiling dirs-sys v0.5.0
[INFO] [stderr]     Checking regex-automata v0.4.18
[INFO] [stderr]    Compiling digest v0.11.3
[INFO] [stderr]    Compiling cpufeatures v0.3.0
[INFO] [stderr]    Compiling dirs v6.0.0
[INFO] [stderr]    Compiling clap_derive v4.6.4
[INFO] [stderr]    Compiling sha2 v0.11.0
[INFO] [stderr]    Compiling rust_decimal_macros v1.40.0
[INFO] [stderr]     Checking futures-executor v0.3.33
[INFO] [stderr]     Checking futures v0.3.33
[INFO] [stderr]    Compiling shellexpand v3.1.2
[INFO] [stderr]     Checking rand_core v0.9.5
[INFO] [stderr]     Checking rusty-fork v0.3.1
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking rand v0.9.5
[INFO] [stderr]     Checking rand_xorshift v0.4.0
[INFO] [stderr]     Checking rust-embed-utils v8.12.0
[INFO] [stderr]     Checking serde v1.0.229
[INFO] [stderr]    Compiling rust-embed-impl v8.12.0
[INFO] [stderr]     Checking clap v4.6.6
[INFO] [stderr]     Checking smallvec v1.15.2
[INFO] [stderr]     Checking chrono v0.4.45
[INFO] [stderr]     Checking either v1.17.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking proptest v1.11.0
[INFO] [stderr]     Checking rust-embed v8.12.0
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]     Checking store-core v0.1.0 (/opt/rustwide/workdir/crates/store-core)
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking idna_adapter v1.2.2
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]     Checking futures-intrusive v0.5.0
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]    Compiling tokio-stream v0.1.19
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stdout] warning: use of deprecated method `std::sync::atomic::Atomic::<i64>::fetch_update`: renamed to `try_update` for consistency
[INFO] [stdout]    --> crates/store-core/src/identity.rs:126:14
[INFO] [stdout]     |
[INFO] [stdout] 126 |             .fetch_update(Ordering::SeqCst, Ordering::SeqCst, |last| {
[INFO] [stdout]     |              ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 126 -             .fetch_update(Ordering::SeqCst, Ordering::SeqCst, |last| {
[INFO] [stdout] 126 +             .try_update(Ordering::SeqCst, Ordering::SeqCst, |last| {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking store-label v0.1.0 (/opt/rustwide/workdir/crates/store-label)
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling store-server v0.1.0 (/opt/rustwide/workdir/crates/store-server)
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stdout] warning: use of deprecated method `std::sync::atomic::Atomic::<i64>::fetch_update`: renamed to `try_update` for consistency
[INFO] [stdout]    --> crates/store-core/src/identity.rs:126:14
[INFO] [stdout]     |
[INFO] [stdout] 126 |             .fetch_update(Ordering::SeqCst, Ordering::SeqCst, |last| {
[INFO] [stdout]     |              ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 126 -             .fetch_update(Ordering::SeqCst, Ordering::SeqCst, |last| {
[INFO] [stdout] 126 +             .try_update(Ordering::SeqCst, Ordering::SeqCst, |last| {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking tokio-util v0.7.19
[INFO] [stderr]     Checking hyper v1.11.0
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking tokio-rustls v0.26.4
[INFO] [stderr]    Compiling sqlx-postgres v0.8.6
[INFO] [stderr]     Checking tower-http v0.6.11
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]     Checking axum v0.8.9
[INFO] [stderr]     Checking hyper-rustls v0.27.9
[INFO] [stderr]     Checking reqwest v0.12.28
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking store-db v0.1.0 (/opt/rustwide/workdir/crates/store-db)
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:38:16
[INFO] [stdout]    |
[INFO] [stdout] 38 |       let rows = sqlx::query_as!(
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 39 | |         AlertRow,
[INFO] [stdout] 40 | |         r#"
[INFO] [stdout] 41 | |         select a.id            as "id!",
[INFO] [stdout] ...  |
[INFO] [stdout] 61 | |         include_acknowledged
[INFO] [stdout] 62 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:74:18
[INFO] [stdout]    |
[INFO] [stdout] 74 |       let result = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 75 | |         r#"
[INFO] [stdout] 76 | |         update stock_alerts
[INFO] [stdout] 77 | |            set acknowledged_at = now(), acknowledged_by = $2
[INFO] [stdout] ...  |
[INFO] [stdout] 81 | |         operator_id,
[INFO] [stdout] 82 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |         sqlx::query_scalar!("select id from stock_alerts where id = $1", alert_id)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/alerts.rs:112:15
[INFO] [stdout]     |
[INFO] [stdout] 112 |       let row = sqlx::query!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout] 113 | |         r#"
[INFO] [stdout] 114 | |         select count(*) filter (where level = 'LOW')   as "low!",
[INFO] [stdout] 115 | |                count(*) filter (where level = 'EMPTY') as "empty!"
[INFO] [stdout] 116 | |           from stock_alerts where resolved_at is null
[INFO] [stdout] 117 | |         "#
[INFO] [stdout] 118 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:106:5
[INFO] [stdout]     |
[INFO] [stdout] 106 | /     sqlx::query!(
[INFO] [stdout] 107 | |         r#"
[INFO] [stdout] 108 | |         insert into tablets (tablet_id, name) values ($1, $2)
[INFO] [stdout] 109 | |         on conflict (tablet_id) do update
[INFO] [stdout] ...   |
[INFO] [stdout] 115 | |         name,
[INFO] [stdout] 116 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:120:5
[INFO] [stdout]     |
[INFO] [stdout] 120 | /     sqlx::query!(
[INFO] [stdout] 121 | |         "update api_tokens set revoked_at = now()
[INFO] [stdout] 122 | |           where tablet_id = $1 and revoked_at is null",
[INFO] [stdout] 123 | |         tablet_id
[INFO] [stdout] 124 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:38:16
[INFO] [stdout]    |
[INFO] [stdout] 38 |       let rows = sqlx::query_as!(
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 39 | |         AlertRow,
[INFO] [stdout] 40 | |         r#"
[INFO] [stdout] 41 | |         select a.id            as "id!",
[INFO] [stdout] ...  |
[INFO] [stdout] 61 | |         include_acknowledged
[INFO] [stdout] 62 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:74:18
[INFO] [stdout]    |
[INFO] [stdout] 74 |       let result = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 75 | |         r#"
[INFO] [stdout] 76 | |         update stock_alerts
[INFO] [stdout] 77 | |            set acknowledged_at = now(), acknowledged_by = $2
[INFO] [stdout] ...  |
[INFO] [stdout] 81 | |         operator_id,
[INFO] [stdout] 82 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |         sqlx::query_scalar!("select id from stock_alerts where id = $1", alert_id)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:129:21
[INFO] [stdout]     |
[INFO] [stdout] 129 |       let issued_at = sqlx::query_scalar!(
[INFO] [stdout]     |  _____________________^
[INFO] [stdout] 130 | |         r#"
[INFO] [stdout] 131 | |         insert into api_tokens (token_hash, kind, tablet_id)
[INFO] [stdout] 132 | |         values ($1, 'TABLET', $2)
[INFO] [stdout] ...   |
[INFO] [stdout] 136 | |         tablet_id,
[INFO] [stdout] 137 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:149:21
[INFO] [stdout]     |
[INFO] [stdout] 149 |       let issued_at = sqlx::query_scalar!(
[INFO] [stdout]     |  _____________________^
[INFO] [stdout] 150 | |         r#"
[INFO] [stdout] 151 | |         insert into api_tokens (token_hash, kind, operator_id, expires_at)
[INFO] [stdout] 152 | |         values ($1, 'OPERATOR', $2, now() + interval '12 hours')
[INFO] [stdout] ...   |
[INFO] [stdout] 156 | |         operator_id,
[INFO] [stdout] 157 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:172:15
[INFO] [stdout]     |
[INFO] [stdout] 172 |       let row = sqlx::query!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout] 173 | |         r#"
[INFO] [stdout] 174 | |         select t.kind, t.tablet_id, t.operator_id,
[INFO] [stdout] 175 | |                o.emp_code as "emp_code?", o.role as "role?",
[INFO] [stdout] ...   |
[INFO] [stdout] 183 | |         hash_token(token)
[INFO] [stdout] 184 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:215:13
[INFO] [stdout]     |
[INFO] [stdout] 215 |       let _ = sqlx::query!(
[INFO] [stdout]     |  _____________^
[INFO] [stdout] 216 | |         "update api_tokens set last_used_at = now() where token_hash = $1",
[INFO] [stdout] 217 | |         hash_token(token)
[INFO] [stdout] 218 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/alerts.rs:112:15
[INFO] [stdout]     |
[INFO] [stdout] 112 |       let row = sqlx::query!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout] 113 | |         r#"
[INFO] [stdout] 114 | |         select count(*) filter (where level = 'LOW')   as "low!",
[INFO] [stdout] 115 | |                count(*) filter (where level = 'EMPTY') as "empty!"
[INFO] [stdout] 116 | |           from stock_alerts where resolved_at is null
[INFO] [stdout] 117 | |         "#
[INFO] [stdout] 118 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:227:17
[INFO] [stdout]     |
[INFO] [stdout] 227 |       let found = sqlx::query_scalar!(
[INFO] [stdout]     |  _________________^
[INFO] [stdout] 228 | |         "select 1 from tablets where tablet_id = $1 and active",
[INFO] [stdout] 229 | |         tablet_id
[INFO] [stdout] 230 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:237:5
[INFO] [stdout]     |
[INFO] [stdout] 237 | /     sqlx::query!(
[INFO] [stdout] 238 | |         "update tablets set last_seen_at = now() where tablet_id = $1",
[INFO] [stdout] 239 | |         tablet_id
[INFO] [stdout] 240 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:247:5
[INFO] [stdout]     |
[INFO] [stdout] 247 | /     sqlx::query!(
[INFO] [stdout] 248 | |         "update api_tokens set revoked_at = now()
[INFO] [stdout] 249 | |           where tablet_id = $1 and revoked_at is null",
[INFO] [stdout] 250 | |         tablet_id
[INFO] [stdout] 251 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:291:18
[INFO] [stdout]     |
[INFO] [stdout] 291 |       let result = sqlx::query!(
[INFO] [stdout]     |  __________________^
[INFO] [stdout] 292 | |         "update operators set pin_hash = $2 where id = $1",
[INFO] [stdout] 293 | |         operator_id,
[INFO] [stdout] 294 | |         hash
[INFO] [stdout] 295 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:324:5
[INFO] [stdout]     |
[INFO] [stdout] 324 | /     sqlx::query_as!(
[INFO] [stdout] 325 | |         TabletRow,
[INFO] [stdout] 326 | |         r#"
[INFO] [stdout] 327 | |         select tablet_id as "tablet_id!", name, location,
[INFO] [stdout] ...   |
[INFO] [stdout] 331 | |         tablet_id
[INFO] [stdout] 332 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:106:5
[INFO] [stdout]     |
[INFO] [stdout] 106 | /     sqlx::query!(
[INFO] [stdout] 107 | |         r#"
[INFO] [stdout] 108 | |         insert into tablets (tablet_id, name) values ($1, $2)
[INFO] [stdout] 109 | |         on conflict (tablet_id) do update
[INFO] [stdout] ...   |
[INFO] [stdout] 115 | |         name,
[INFO] [stdout] 116 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking store-adms v0.1.0 (/opt/rustwide/workdir/crates/store-adms)
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:120:5
[INFO] [stdout]     |
[INFO] [stdout] 120 | /     sqlx::query!(
[INFO] [stdout] 121 | |         "update api_tokens set revoked_at = now()
[INFO] [stdout] 122 | |           where tablet_id = $1 and revoked_at is null",
[INFO] [stdout] 123 | |         tablet_id
[INFO] [stdout] 124 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:129:21
[INFO] [stdout]     |
[INFO] [stdout] 129 |       let issued_at = sqlx::query_scalar!(
[INFO] [stdout]     |  _____________________^
[INFO] [stdout] 130 | |         r#"
[INFO] [stdout] 131 | |         insert into api_tokens (token_hash, kind, tablet_id)
[INFO] [stdout] 132 | |         values ($1, 'TABLET', $2)
[INFO] [stdout] ...   |
[INFO] [stdout] 136 | |         tablet_id,
[INFO] [stdout] 137 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:149:21
[INFO] [stdout]     |
[INFO] [stdout] 149 |       let issued_at = sqlx::query_scalar!(
[INFO] [stdout]     |  _____________________^
[INFO] [stdout] 150 | |         r#"
[INFO] [stdout] 151 | |         insert into api_tokens (token_hash, kind, operator_id, expires_at)
[INFO] [stdout] 152 | |         values ($1, 'OPERATOR', $2, now() + interval '12 hours')
[INFO] [stdout] ...   |
[INFO] [stdout] 156 | |         operator_id,
[INFO] [stdout] 157 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:172:15
[INFO] [stdout]     |
[INFO] [stdout] 172 |       let row = sqlx::query!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout] 173 | |         r#"
[INFO] [stdout] 174 | |         select t.kind, t.tablet_id, t.operator_id,
[INFO] [stdout] 175 | |                o.emp_code as "emp_code?", o.role as "role?",
[INFO] [stdout] ...   |
[INFO] [stdout] 183 | |         hash_token(token)
[INFO] [stdout] 184 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:215:13
[INFO] [stdout]     |
[INFO] [stdout] 215 |       let _ = sqlx::query!(
[INFO] [stdout]     |  _____________^
[INFO] [stdout] 216 | |         "update api_tokens set last_used_at = now() where token_hash = $1",
[INFO] [stdout] 217 | |         hash_token(token)
[INFO] [stdout] 218 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:227:17
[INFO] [stdout]     |
[INFO] [stdout] 227 |       let found = sqlx::query_scalar!(
[INFO] [stdout]     |  _________________^
[INFO] [stdout] 228 | |         "select 1 from tablets where tablet_id = $1 and active",
[INFO] [stdout] 229 | |         tablet_id
[INFO] [stdout] 230 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:237:5
[INFO] [stdout]     |
[INFO] [stdout] 237 | /     sqlx::query!(
[INFO] [stdout] 238 | |         "update tablets set last_seen_at = now() where tablet_id = $1",
[INFO] [stdout] 239 | |         tablet_id
[INFO] [stdout] 240 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:247:5
[INFO] [stdout]     |
[INFO] [stdout] 247 | /     sqlx::query!(
[INFO] [stdout] 248 | |         "update api_tokens set revoked_at = now()
[INFO] [stdout] 249 | |           where tablet_id = $1 and revoked_at is null",
[INFO] [stdout] 250 | |         tablet_id
[INFO] [stdout] 251 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:291:18
[INFO] [stdout]     |
[INFO] [stdout] 291 |       let result = sqlx::query!(
[INFO] [stdout]     |  __________________^
[INFO] [stdout] 292 | |         "update operators set pin_hash = $2 where id = $1",
[INFO] [stdout] 293 | |         operator_id,
[INFO] [stdout] 294 | |         hash
[INFO] [stdout] 295 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/auth.rs:324:5
[INFO] [stdout]     |
[INFO] [stdout] 324 | /     sqlx::query_as!(
[INFO] [stdout] 325 | |         TabletRow,
[INFO] [stdout] 326 | |         r#"
[INFO] [stdout] 327 | |         select tablet_id as "tablet_id!", name, location,
[INFO] [stdout] ...   |
[INFO] [stdout] 331 | |         tablet_id
[INFO] [stdout] 332 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:76:15
[INFO] [stdout]     |
[INFO] [stdout]  76 |       let row = sqlx::query_as!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout]  77 | |         ItemView,
[INFO] [stdout]  78 | |         r#"
[INFO] [stdout]  79 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 105 | |         code
[INFO] [stdout] 106 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:126:16
[INFO] [stdout]     |
[INFO] [stdout] 126 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 127 | |         ItemView,
[INFO] [stdout] 128 | |         r#"
[INFO] [stdout] 129 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 167 | |         limit.clamp(1, 100)
[INFO] [stdout] 168 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:177:5
[INFO] [stdout]     |
[INFO] [stdout] 177 | /     sqlx::query_as!(
[INFO] [stdout] 178 | |         ItemView,
[INFO] [stdout] 179 | |         r#"
[INFO] [stdout] 180 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 203 | |         id
[INFO] [stdout] 204 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:225:16
[INFO] [stdout]     |
[INFO] [stdout] 225 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 226 | |         ItemView,
[INFO] [stdout] 227 | |         r#"
[INFO] [stdout] 228 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 263 | |         filter.offset.max(0),
[INFO] [stdout] 264 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:280:14
[INFO] [stdout]     |
[INFO] [stdout] 280 |       let id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 281 | |         r#"
[INFO] [stdout] 282 | |         insert into items (
[INFO] [stdout] 283 | |             item_code, description, category_id, uom,
[INFO] [stdout] ...   |
[INFO] [stdout] 304 | |         input.allow_negative,
[INFO] [stdout] 305 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:322:18
[INFO] [stdout]     |
[INFO] [stdout] 322 |       let result = sqlx::query!(
[INFO] [stdout]     |  __________________^
[INFO] [stdout] 323 | |         r#"
[INFO] [stdout] 324 | |         update items
[INFO] [stdout] 325 | |            set item_code = $2, description = $3, category_id = $4, uom = $5,
[INFO] [stdout] ...   |
[INFO] [stdout] 347 | |         input.allow_negative,
[INFO] [stdout] 348 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:358:18
[INFO] [stdout]     |
[INFO] [stdout] 358 |     let result = sqlx::query!("update items set active = false where id = $1", id)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:373:14
[INFO] [stdout]     |
[INFO] [stdout] 373 |       let id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 374 | |         "insert into item_barcodes (item_id, code, kind) values ($1, $2, $3) returning id",
[INFO] [stdout] 375 | |         item_id,
[INFO] [stdout] 376 | |         code,
[INFO] [stdout] 377 | |         kind.as_str(),
[INFO] [stdout] 378 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:388:16
[INFO] [stdout]     |
[INFO] [stdout] 388 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 389 | |         ItemView,
[INFO] [stdout] 390 | |         r#"
[INFO] [stdout] 391 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 415 | |         ids
[INFO] [stdout] 416 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:209:29
[INFO] [stdout]     |
[INFO] [stdout] 209 |       let prior_alert_state = sqlx::query_scalar!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 210 | |         "select alert_state from item_stock where item_id = $1",
[INFO] [stdout] 211 | |         new.movement.item_id
[INFO] [stdout] 212 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:216:20
[INFO] [stdout]     |
[INFO] [stdout] 216 |       let inserted = sqlx::query!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 217 | |         r#"
[INFO] [stdout] 218 | |         insert into stock_ledger (
[INFO] [stdout] 219 | |             item_id, delta_qty, txn_type, operator_id, session_id,
[INFO] [stdout] ...   |
[INFO] [stdout] 241 | |         new.client_txn_uuid,
[INFO] [stdout] 242 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:247:17
[INFO] [stdout]     |
[INFO] [stdout] 247 |       let stock = sqlx::query!(
[INFO] [stdout]     |  _________________^
[INFO] [stdout] 248 | |         r#"select on_hand, alert_state from item_stock where item_id = $1"#,
[INFO] [stdout] 249 | |         new.movement.item_id
[INFO] [stdout] 250 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:76:15
[INFO] [stdout]     |
[INFO] [stdout]  76 |       let row = sqlx::query_as!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout]  77 | |         ItemView,
[INFO] [stdout]  78 | |         r#"
[INFO] [stdout]  79 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 105 | |         code
[INFO] [stdout] 106 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:126:16
[INFO] [stdout]     |
[INFO] [stdout] 126 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 127 | |         ItemView,
[INFO] [stdout] 128 | |         r#"
[INFO] [stdout] 129 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 167 | |         limit.clamp(1, 100)
[INFO] [stdout] 168 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:177:5
[INFO] [stdout]     |
[INFO] [stdout] 177 | /     sqlx::query_as!(
[INFO] [stdout] 178 | |         ItemView,
[INFO] [stdout] 179 | |         r#"
[INFO] [stdout] 180 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 203 | |         id
[INFO] [stdout] 204 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:291:15
[INFO] [stdout]     |
[INFO] [stdout] 291 |       let row = sqlx::query!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout] 292 | |         r#"
[INFO] [stdout] 293 | |         select l.id, l.item_id, l.delta_qty, l.created_at,
[INFO] [stdout] 294 | |                s.on_hand as "on_hand!", s.alert_state as "alert_state!"
[INFO] [stdout] ...   |
[INFO] [stdout] 299 | |         client_txn_uuid
[INFO] [stdout] 300 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:225:16
[INFO] [stdout]     |
[INFO] [stdout] 225 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 226 | |         ItemView,
[INFO] [stdout] 227 | |         r#"
[INFO] [stdout] 228 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 263 | |         filter.offset.max(0),
[INFO] [stdout] 264 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:280:14
[INFO] [stdout]     |
[INFO] [stdout] 280 |       let id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 281 | |         r#"
[INFO] [stdout] 282 | |         insert into items (
[INFO] [stdout] 283 | |             item_code, description, category_id, uom,
[INFO] [stdout] ...   |
[INFO] [stdout] 304 | |         input.allow_negative,
[INFO] [stdout] 305 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:322:18
[INFO] [stdout]     |
[INFO] [stdout] 322 |       let result = sqlx::query!(
[INFO] [stdout]     |  __________________^
[INFO] [stdout] 323 | |         r#"
[INFO] [stdout] 324 | |         update items
[INFO] [stdout] 325 | |            set item_code = $2, description = $3, category_id = $4, uom = $5,
[INFO] [stdout] ...   |
[INFO] [stdout] 347 | |         input.allow_negative,
[INFO] [stdout] 348 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:358:18
[INFO] [stdout]     |
[INFO] [stdout] 358 |     let result = sqlx::query!("update items set active = false where id = $1", id)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:373:14
[INFO] [stdout]     |
[INFO] [stdout] 373 |       let id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 374 | |         "insert into item_barcodes (item_id, code, kind) values ($1, $2, $3) returning id",
[INFO] [stdout] 375 | |         item_id,
[INFO] [stdout] 376 | |         code,
[INFO] [stdout] 377 | |         kind.as_str(),
[INFO] [stdout] 378 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/items.rs:388:16
[INFO] [stdout]     |
[INFO] [stdout] 388 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 389 | |         ItemView,
[INFO] [stdout] 390 | |         r#"
[INFO] [stdout] 391 | |         select i.id                as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 415 | |         ids
[INFO] [stdout] 416 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:209:29
[INFO] [stdout]     |
[INFO] [stdout] 209 |       let prior_alert_state = sqlx::query_scalar!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 210 | |         "select alert_state from item_stock where item_id = $1",
[INFO] [stdout] 211 | |         new.movement.item_id
[INFO] [stdout] 212 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:216:20
[INFO] [stdout]     |
[INFO] [stdout] 216 |       let inserted = sqlx::query!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 217 | |         r#"
[INFO] [stdout] 218 | |         insert into stock_ledger (
[INFO] [stdout] 219 | |             item_id, delta_qty, txn_type, operator_id, session_id,
[INFO] [stdout] ...   |
[INFO] [stdout] 241 | |         new.client_txn_uuid,
[INFO] [stdout] 242 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:319:15
[INFO] [stdout]     |
[INFO] [stdout] 319 |       let row = sqlx::query!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout] 320 | |         r#"
[INFO] [stdout] 321 | |         select id, item_id, delta_qty, txn_type, operator_id, session_id,
[INFO] [stdout] 322 | |                machine_id, reason_id, note, unit_cost, device_ts, created_at,
[INFO] [stdout] ...   |
[INFO] [stdout] 326 | |         id
[INFO] [stdout] 327 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:413:16
[INFO] [stdout]     |
[INFO] [stdout] 413 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 414 | |         LedgerRow,
[INFO] [stdout] 415 | |         r#"
[INFO] [stdout] 416 | |         select l.id           as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 455 | |         filter.offset.max(0),
[INFO] [stdout] 456 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:486:16
[INFO] [stdout]     |
[INFO] [stdout] 486 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 487 | |         Drift,
[INFO] [stdout] 488 | |         r#"
[INFO] [stdout] 489 | |         select s.item_id                             as "item_id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 499 | |         "#
[INFO] [stdout] 500 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:247:17
[INFO] [stdout]     |
[INFO] [stdout] 247 |       let stock = sqlx::query!(
[INFO] [stdout]     |  _________________^
[INFO] [stdout] 248 | |         r#"select on_hand, alert_state from item_stock where item_id = $1"#,
[INFO] [stdout] 249 | |         new.movement.item_id
[INFO] [stdout] 250 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/machines.rs:86:16
[INFO] [stdout]    |
[INFO] [stdout] 86 |       let rows = sqlx::query_as!(
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 87 | |         MachineAdminView,
[INFO] [stdout] 88 | |         r#"
[INFO] [stdout] 89 | |         select m.id as "id!", m.code as "code!", m.name, m.active as "active!",
[INFO] [stdout] ...  |
[INFO] [stdout] 94 | |         "#
[INFO] [stdout] 95 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:291:15
[INFO] [stdout]     |
[INFO] [stdout] 291 |       let row = sqlx::query!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout] 292 | |         r#"
[INFO] [stdout] 293 | |         select l.id, l.item_id, l.delta_qty, l.created_at,
[INFO] [stdout] 294 | |                s.on_hand as "on_hand!", s.alert_state as "alert_state!"
[INFO] [stdout] ...   |
[INFO] [stdout] 299 | |         client_txn_uuid
[INFO] [stdout] 300 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:319:15
[INFO] [stdout]     |
[INFO] [stdout] 319 |       let row = sqlx::query!(
[INFO] [stdout]     |  _______________^
[INFO] [stdout] 320 | |         r#"
[INFO] [stdout] 321 | |         select id, item_id, delta_qty, txn_type, operator_id, session_id,
[INFO] [stdout] 322 | |                machine_id, reason_id, note, unit_cost, device_ts, created_at,
[INFO] [stdout] ...   |
[INFO] [stdout] 326 | |         id
[INFO] [stdout] 327 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:413:16
[INFO] [stdout]     |
[INFO] [stdout] 413 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 414 | |         LedgerRow,
[INFO] [stdout] 415 | |         r#"
[INFO] [stdout] 416 | |         select l.id           as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 455 | |         filter.offset.max(0),
[INFO] [stdout] 456 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/machines.rs:103:5
[INFO] [stdout]     |
[INFO] [stdout] 103 | /     sqlx::query_as!(
[INFO] [stdout] 104 | |         Machine,
[INFO] [stdout] 105 | |         r#"
[INFO] [stdout] 106 | |         select id as "id!", code as "code!", name, active as "active!"
[INFO] [stdout] ...   |
[INFO] [stdout] 109 | |         id
[INFO] [stdout] 110 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:486:16
[INFO] [stdout]     |
[INFO] [stdout] 486 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 487 | |         Drift,
[INFO] [stdout] 488 | |         r#"
[INFO] [stdout] 489 | |         select s.item_id                             as "item_id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 499 | |         "#
[INFO] [stdout] 500 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/machines.rs:120:5
[INFO] [stdout]     |
[INFO] [stdout] 120 | /     sqlx::query_as!(
[INFO] [stdout] 121 | |         Machine,
[INFO] [stdout] 122 | |         r#"
[INFO] [stdout] 123 | |         insert into machines (code, name, active)
[INFO] [stdout] ...   |
[INFO] [stdout] 129 | |         input.active,
[INFO] [stdout] 130 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/machines.rs:140:5
[INFO] [stdout]     |
[INFO] [stdout] 140 | /     sqlx::query_as!(
[INFO] [stdout] 141 | |         Machine,
[INFO] [stdout] 142 | |         r#"
[INFO] [stdout] 143 | |         update machines
[INFO] [stdout] ...   |
[INFO] [stdout] 151 | |         input.active,
[INFO] [stdout] 152 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/machines.rs:161:5
[INFO] [stdout]     |
[INFO] [stdout] 161 | /     sqlx::query_as!(
[INFO] [stdout] 162 | |         Machine,
[INFO] [stdout] 163 | |         r#"
[INFO] [stdout] 164 | |         update machines set active = false
[INFO] [stdout] ...   |
[INFO] [stdout] 168 | |         id
[INFO] [stdout] 169 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/operators.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | /     sqlx::query_as!(
[INFO] [stdout] 32 | |         Operator,
[INFO] [stdout] 33 | |         r#"
[INFO] [stdout] 34 | |         select id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout] ...  |
[INFO] [stdout] 38 | |         id
[INFO] [stdout] 39 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/operators.rs:50:15
[INFO] [stdout]    |
[INFO] [stdout] 50 |       let row = sqlx::query_as!(
[INFO] [stdout]    |  _______________^
[INFO] [stdout] 51 | |         Operator,
[INFO] [stdout] 52 | |         r#"
[INFO] [stdout] 53 | |         select id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout] ...  |
[INFO] [stdout] 57 | |         zk_user_id
[INFO] [stdout] 58 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/operators.rs:71:15
[INFO] [stdout]    |
[INFO] [stdout] 71 |       let row = sqlx::query!(
[INFO] [stdout]    |  _______________^
[INFO] [stdout] 72 | |         r#"
[INFO] [stdout] 73 | |         select id, emp_code, full_name, zk_user_id, role, department, active, pin_hash
[INFO] [stdout] 74 | |           from operators where upper(emp_code) = upper($1) and active
[INFO] [stdout] 75 | |         "#,
[INFO] [stdout] 76 | |         emp_code.trim()
[INFO] [stdout] 77 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:96:16
[INFO] [stdout]     |
[INFO] [stdout]  96 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout]  97 | |         Operator,
[INFO] [stdout]  98 | |         r#"
[INFO] [stdout]  99 | |         select id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout] ...   |
[INFO] [stdout] 105 | |         include_inactive
[INFO] [stdout] 106 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/machines.rs:86:16
[INFO] [stdout]    |
[INFO] [stdout] 86 |       let rows = sqlx::query_as!(
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 87 | |         MachineAdminView,
[INFO] [stdout] 88 | |         r#"
[INFO] [stdout] 89 | |         select m.id as "id!", m.code as "code!", m.name, m.active as "active!",
[INFO] [stdout] ...  |
[INFO] [stdout] 94 | |         "#
[INFO] [stdout] 95 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:127:14
[INFO] [stdout]     |
[INFO] [stdout] 127 |       let id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 128 | |         r#"
[INFO] [stdout] 129 | |         insert into operators (emp_code, full_name, zk_user_id, role, department, pin_hash)
[INFO] [stdout] 130 | |         values ($1, $2, $3, $4, $5, $6)
[INFO] [stdout] ...   |
[INFO] [stdout] 138 | |         pin_hash,
[INFO] [stdout] 139 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/machines.rs:103:5
[INFO] [stdout]     |
[INFO] [stdout] 103 | /     sqlx::query_as!(
[INFO] [stdout] 104 | |         Machine,
[INFO] [stdout] 105 | |         r#"
[INFO] [stdout] 106 | |         select id as "id!", code as "code!", name, active as "active!"
[INFO] [stdout] ...   |
[INFO] [stdout] 109 | |         id
[INFO] [stdout] 110 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/machines.rs:120:5
[INFO] [stdout]     |
[INFO] [stdout] 120 | /     sqlx::query_as!(
[INFO] [stdout] 121 | |         Machine,
[INFO] [stdout] 122 | |         r#"
[INFO] [stdout] 123 | |         insert into machines (code, name, active)
[INFO] [stdout] ...   |
[INFO] [stdout] 129 | |         input.active,
[INFO] [stdout] 130 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/machines.rs:140:5
[INFO] [stdout]     |
[INFO] [stdout] 140 | /     sqlx::query_as!(
[INFO] [stdout] 141 | |         Machine,
[INFO] [stdout] 142 | |         r#"
[INFO] [stdout] 143 | |         update machines
[INFO] [stdout] ...   |
[INFO] [stdout] 151 | |         input.active,
[INFO] [stdout] 152 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/machines.rs:161:5
[INFO] [stdout]     |
[INFO] [stdout] 161 | /     sqlx::query_as!(
[INFO] [stdout] 162 | |         Machine,
[INFO] [stdout] 163 | |         r#"
[INFO] [stdout] 164 | |         update machines set active = false
[INFO] [stdout] ...   |
[INFO] [stdout] 168 | |         id
[INFO] [stdout] 169 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:229:19
[INFO] [stdout]     |
[INFO] [stdout] 229 |       let updated = sqlx::query_as!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 230 | |         Operator,
[INFO] [stdout] 231 | |         r#"
[INFO] [stdout] 232 | |         update operators
[INFO] [stdout] ...   |
[INFO] [stdout] 254 | |         pin_hash.flatten(),
[INFO] [stdout] 255 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:284:19
[INFO] [stdout]     |
[INFO] [stdout] 284 |       let updated = sqlx::query_as!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 285 | |         Operator,
[INFO] [stdout] 286 | |         r#"
[INFO] [stdout] 287 | |         update operators set active = false
[INFO] [stdout] ...   |
[INFO] [stdout] 292 | |         id
[INFO] [stdout] 293 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/operators.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | /     sqlx::query_as!(
[INFO] [stdout] 32 | |         Operator,
[INFO] [stdout] 33 | |         r#"
[INFO] [stdout] 34 | |         select id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout] ...  |
[INFO] [stdout] 38 | |         id
[INFO] [stdout] 39 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:320:18
[INFO] [stdout]     |
[INFO] [stdout] 320 |       let admins = sqlx::query_scalar!(
[INFO] [stdout]     |  __________________^
[INFO] [stdout] 321 | |         r#"select count(*) as "n!" from operators where active and role = 'ADMIN'"#
[INFO] [stdout] 322 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/operators.rs:50:15
[INFO] [stdout]    |
[INFO] [stdout] 50 |       let row = sqlx::query_as!(
[INFO] [stdout]    |  _______________^
[INFO] [stdout] 51 | |         Operator,
[INFO] [stdout] 52 | |         r#"
[INFO] [stdout] 53 | |         select id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout] ...  |
[INFO] [stdout] 57 | |         zk_user_id
[INFO] [stdout] 58 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:356:5
[INFO] [stdout]     |
[INFO] [stdout] 356 |     sqlx::query!("select pg_advisory_xact_lock($1)", ADMIN_SET_LOCK)
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/operators.rs:71:15
[INFO] [stdout]    |
[INFO] [stdout] 71 |       let row = sqlx::query!(
[INFO] [stdout]    |  _______________^
[INFO] [stdout] 72 | |         r#"
[INFO] [stdout] 73 | |         select id, emp_code, full_name, zk_user_id, role, department, active, pin_hash
[INFO] [stdout] 74 | |           from operators where upper(emp_code) = upper($1) and active
[INFO] [stdout] 75 | |         "#,
[INFO] [stdout] 76 | |         emp_code.trim()
[INFO] [stdout] 77 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:363:18
[INFO] [stdout]     |
[INFO] [stdout] 363 |     let result = sqlx::query!("update operators set active = $2 where id = $1", id, active)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:96:16
[INFO] [stdout]     |
[INFO] [stdout]  96 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout]  97 | |         Operator,
[INFO] [stdout]  98 | |         r#"
[INFO] [stdout]  99 | |         select id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout] ...   |
[INFO] [stdout] 105 | |         include_inactive
[INFO] [stdout] 106 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:127:14
[INFO] [stdout]     |
[INFO] [stdout] 127 |       let id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 128 | |         r#"
[INFO] [stdout] 129 | |         insert into operators (emp_code, full_name, zk_user_id, role, department, pin_hash)
[INFO] [stdout] 130 | |         values ($1, $2, $3, $4, $5, $6)
[INFO] [stdout] ...   |
[INFO] [stdout] 138 | |         pin_hash,
[INFO] [stdout] 139 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/punches.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 |       let id = sqlx::query_scalar!(
[INFO] [stdout]    |  ______________^
[INFO] [stdout] 34 | |         r#"
[INFO] [stdout] 35 | |         insert into devices (serial_no, name, last_seen_at, firmware, timezone_offset_min)
[INFO] [stdout] 36 | |         values ($1, $1, now(), $2, $3)
[INFO] [stdout] ...  |
[INFO] [stdout] 46 | |         timezone_offset_min,
[INFO] [stdout] 47 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/punches.rs:72:20
[INFO] [stdout]    |
[INFO] [stdout] 72 |       let inserted = sqlx::query_scalar!(
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 73 | |         r#"
[INFO] [stdout] 74 | |         insert into punches (device_id, zk_user_id, device_ts, verify_mode, raw)
[INFO] [stdout] 75 | |         values ($1, $2, $3, $4, $5)
[INFO] [stdout] ...  |
[INFO] [stdout] 83 | |         event.raw,
[INFO] [stdout] 84 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/punches.rs:93:20
[INFO] [stdout]     |
[INFO] [stdout]  93 |       let existing = sqlx::query_scalar!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout]  94 | |         r#"
[INFO] [stdout]  95 | |         select id from punches
[INFO] [stdout]  96 | |          where device_id = $1 and zk_user_id = $2 and device_ts is not distinct from $3
[INFO] [stdout] ...   |
[INFO] [stdout] 100 | |         event.device_ts,
[INFO] [stdout] 101 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/punches.rs:124:16
[INFO] [stdout]     |
[INFO] [stdout] 124 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 125 | |         UnknownUserPunch,
[INFO] [stdout] 126 | |         r#"
[INFO] [stdout] 127 | |         select distinct on (p.zk_user_id)
[INFO] [stdout] ...   |
[INFO] [stdout] 141 | |         limit.clamp(1, 500),
[INFO] [stdout] 142 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:229:19
[INFO] [stdout]     |
[INFO] [stdout] 229 |       let updated = sqlx::query_as!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 230 | |         Operator,
[INFO] [stdout] 231 | |         r#"
[INFO] [stdout] 232 | |         update operators
[INFO] [stdout] ...   |
[INFO] [stdout] 254 | |         pin_hash.flatten(),
[INFO] [stdout] 255 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/punches.rs:151:16
[INFO] [stdout]     |
[INFO] [stdout] 151 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 152 | |         PunchRow,
[INFO] [stdout] 153 | |         r#"
[INFO] [stdout] 154 | |         select id           as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 165 | |         limit.clamp(1, 1000),
[INFO] [stdout] 166 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:284:19
[INFO] [stdout]     |
[INFO] [stdout] 284 |       let updated = sqlx::query_as!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 285 | |         Operator,
[INFO] [stdout] 286 | |         r#"
[INFO] [stdout] 287 | |         update operators set active = false
[INFO] [stdout] ...   |
[INFO] [stdout] 292 | |         id
[INFO] [stdout] 293 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:320:18
[INFO] [stdout]     |
[INFO] [stdout] 320 |       let admins = sqlx::query_scalar!(
[INFO] [stdout]     |  __________________^
[INFO] [stdout] 321 | |         r#"select count(*) as "n!" from operators where active and role = 'ADMIN'"#
[INFO] [stdout] 322 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:356:5
[INFO] [stdout]     |
[INFO] [stdout] 356 |     sqlx::query!("select pg_advisory_xact_lock($1)", ADMIN_SET_LOCK)
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/operators.rs:363:18
[INFO] [stdout]     |
[INFO] [stdout] 363 |     let result = sqlx::query!("update operators set active = $2 where id = $1", id, active)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/punches.rs:185:16
[INFO] [stdout]     |
[INFO] [stdout] 185 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 186 | |         DeviceHealth,
[INFO] [stdout] 187 | |         r#"
[INFO] [stdout] 188 | |         select id as "id!", serial_no as "serial_no!", name, location,
[INFO] [stdout] ...   |
[INFO] [stdout] 192 | |         "#
[INFO] [stdout] 193 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/punches.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 |       let id = sqlx::query_scalar!(
[INFO] [stdout]    |  ______________^
[INFO] [stdout] 34 | |         r#"
[INFO] [stdout] 35 | |         insert into devices (serial_no, name, last_seen_at, firmware, timezone_offset_min)
[INFO] [stdout] 36 | |         values ($1, $1, now(), $2, $3)
[INFO] [stdout] ...  |
[INFO] [stdout] 46 | |         timezone_offset_min,
[INFO] [stdout] 47 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/punches.rs:72:20
[INFO] [stdout]    |
[INFO] [stdout] 72 |       let inserted = sqlx::query_scalar!(
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 73 | |         r#"
[INFO] [stdout] 74 | |         insert into punches (device_id, zk_user_id, device_ts, verify_mode, raw)
[INFO] [stdout] 75 | |         values ($1, $2, $3, $4, $5)
[INFO] [stdout] ...  |
[INFO] [stdout] 83 | |         event.raw,
[INFO] [stdout] 84 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/punches.rs:93:20
[INFO] [stdout]     |
[INFO] [stdout]  93 |       let existing = sqlx::query_scalar!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout]  94 | |         r#"
[INFO] [stdout]  95 | |         select id from punches
[INFO] [stdout]  96 | |          where device_id = $1 and zk_user_id = $2 and device_ts is not distinct from $3
[INFO] [stdout] ...   |
[INFO] [stdout] 100 | |         event.device_ts,
[INFO] [stdout] 101 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:112:16
[INFO] [stdout]     |
[INFO] [stdout] 112 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 113 | |         ReasonCodeAdminView,
[INFO] [stdout] 114 | |         r#"
[INFO] [stdout] 115 | |         select r.id as "id!", r.code as "code!", r.label as "label!",
[INFO] [stdout] ...   |
[INFO] [stdout] 122 | |         "#
[INFO] [stdout] 123 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/punches.rs:124:16
[INFO] [stdout]     |
[INFO] [stdout] 124 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 125 | |         UnknownUserPunch,
[INFO] [stdout] 126 | |         r#"
[INFO] [stdout] 127 | |         select distinct on (p.zk_user_id)
[INFO] [stdout] ...   |
[INFO] [stdout] 141 | |         limit.clamp(1, 500),
[INFO] [stdout] 142 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:131:5
[INFO] [stdout]     |
[INFO] [stdout] 131 | /     sqlx::query_as!(
[INFO] [stdout] 132 | |         ReasonCode,
[INFO] [stdout] 133 | |         r#"
[INFO] [stdout] 134 | |         select id as "id!", code as "code!", label as "label!",
[INFO] [stdout] ...   |
[INFO] [stdout] 139 | |         id
[INFO] [stdout] 140 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:149:5
[INFO] [stdout]     |
[INFO] [stdout] 149 | /     sqlx::query_as!(
[INFO] [stdout] 150 | |         ReasonCode,
[INFO] [stdout] 151 | |         r#"
[INFO] [stdout] 152 | |         insert into reason_codes (code, label, applies_to, sort_order, active)
[INFO] [stdout] ...   |
[INFO] [stdout] 162 | |         input.active,
[INFO] [stdout] 163 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/punches.rs:151:16
[INFO] [stdout]     |
[INFO] [stdout] 151 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 152 | |         PunchRow,
[INFO] [stdout] 153 | |         r#"
[INFO] [stdout] 154 | |         select id           as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 165 | |         limit.clamp(1, 1000),
[INFO] [stdout] 166 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:175:5
[INFO] [stdout]     |
[INFO] [stdout] 175 | /     sqlx::query_as!(
[INFO] [stdout] 176 | |         ReasonCode,
[INFO] [stdout] 177 | |         r#"
[INFO] [stdout] 178 | |         update reason_codes
[INFO] [stdout] ...   |
[INFO] [stdout] 191 | |         input.active,
[INFO] [stdout] 192 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:200:5
[INFO] [stdout]     |
[INFO] [stdout] 200 | /     sqlx::query_as!(
[INFO] [stdout] 201 | |         ReasonCode,
[INFO] [stdout] 202 | |         r#"
[INFO] [stdout] 203 | |         update reason_codes set active = false
[INFO] [stdout] ...   |
[INFO] [stdout] 209 | |         id
[INFO] [stdout] 210 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:92:13
[INFO] [stdout]     |
[INFO] [stdout]  92 | /             sqlx::query_as!(
[INFO] [stdout]  93 | |                 ConsumptionRow,
[INFO] [stdout]  94 | |                 r#"
[INFO] [stdout]  95 | |                 select i.id::text                                  as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 111 | |                 to
[INFO] [stdout] 112 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/punches.rs:185:16
[INFO] [stdout]     |
[INFO] [stdout] 185 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 186 | |         DeviceHealth,
[INFO] [stdout] 187 | |         r#"
[INFO] [stdout] 188 | |         select id as "id!", serial_no as "serial_no!", name, location,
[INFO] [stdout] ...   |
[INFO] [stdout] 192 | |         "#
[INFO] [stdout] 193 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:117:13
[INFO] [stdout]     |
[INFO] [stdout] 117 | /             sqlx::query_as!(
[INFO] [stdout] 118 | |                 ConsumptionRow,
[INFO] [stdout] 119 | |                 r#"
[INFO] [stdout] 120 | |                 select coalesce(m.id::text, 'unassigned')           as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 136 | |                 to
[INFO] [stdout] 137 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:142:13
[INFO] [stdout]     |
[INFO] [stdout] 142 | /             sqlx::query_as!(
[INFO] [stdout] 143 | |                 ConsumptionRow,
[INFO] [stdout] 144 | |                 r#"
[INFO] [stdout] 145 | |                 select o.id::text                                   as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 161 | |                 to
[INFO] [stdout] 162 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:167:13
[INFO] [stdout]     |
[INFO] [stdout] 167 | /             sqlx::query_as!(
[INFO] [stdout] 168 | |                 ConsumptionRow,
[INFO] [stdout] 169 | |                 r#"
[INFO] [stdout] 170 | |                 select coalesce(c.id::text, 'uncategorised')        as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 187 | |                 to
[INFO] [stdout] 188 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:193:13
[INFO] [stdout]     |
[INFO] [stdout] 193 | /             sqlx::query_as!(
[INFO] [stdout] 194 | |                 ConsumptionRow,
[INFO] [stdout] 195 | |                 r#"
[INFO] [stdout] 196 | |                 select to_char(date_trunc('month', l.created_at), 'YYYY-MM') as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 211 | |                 to
[INFO] [stdout] 212 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:107:5
[INFO] [stdout]     |
[INFO] [stdout] 107 | /     sqlx::query_as!(
[INFO] [stdout] 108 | |         SessionRow,
[INFO] [stdout] 109 | |         r#"
[INFO] [stdout] 110 | |         select id             as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 123 | |         id
[INFO] [stdout] 124 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:158:20
[INFO] [stdout]     |
[INFO] [stdout] 158 |     let existing = sqlx::query_scalar!("select id from sessions where punch_id = $1", punch_id)
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:167:23
[INFO] [stdout]     |
[INFO] [stdout] 167 |       let operator_id = sqlx::query_scalar!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 168 | |         r#"
[INFO] [stdout] 169 | |         select o.id from punches p
[INFO] [stdout] 170 | |           join operators o on o.zk_user_id = p.zk_user_id and o.active
[INFO] [stdout] ...   |
[INFO] [stdout] 173 | |         punch_id
[INFO] [stdout] 174 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:183:22
[INFO] [stdout]     |
[INFO] [stdout] 183 |       let session_id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________________^
[INFO] [stdout] 184 | |         r#"
[INFO] [stdout] 185 | |         insert into sessions (operator_id, punch_id, state, manual_identity)
[INFO] [stdout] 186 | |         values ($1, $2, 'UNCLAIMED', false)
[INFO] [stdout] ...   |
[INFO] [stdout] 190 | |         punch_id,
[INFO] [stdout] 191 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:196:5
[INFO] [stdout]     |
[INFO] [stdout] 196 |     sqlx::query!("update punches set claimed = true where id = $1", punch_id)
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:209:16
[INFO] [stdout]     |
[INFO] [stdout] 209 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 210 | |         UnclaimedSession,
[INFO] [stdout] 211 | |         r#"
[INFO] [stdout] 212 | |         select s.id          as "session_id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 228 | |         CLAIM_WINDOW_SECS as f64,
[INFO] [stdout] 229 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:260:19
[INFO] [stdout]     |
[INFO] [stdout] 260 |       let updated = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 261 | |         r#"
[INFO] [stdout] 262 | |         update sessions
[INFO] [stdout] 263 | |            set state = 'ACTIVE',
[INFO] [stdout] ...   |
[INFO] [stdout] 272 | |         tablet_id.0,
[INFO] [stdout] 273 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:112:16
[INFO] [stdout]     |
[INFO] [stdout] 112 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 113 | |         ReasonCodeAdminView,
[INFO] [stdout] 114 | |         r#"
[INFO] [stdout] 115 | |         select r.id as "id!", r.code as "code!", r.label as "label!",
[INFO] [stdout] ...   |
[INFO] [stdout] 122 | |         "#
[INFO] [stdout] 123 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:304:14
[INFO] [stdout]     |
[INFO] [stdout] 304 |       let id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 305 | |         r#"
[INFO] [stdout] 306 | |         insert into sessions (
[INFO] [stdout] 307 | |             operator_id, punch_id, state, manual_identity,
[INFO] [stdout] ...   |
[INFO] [stdout] 317 | |         tablet_id.0,
[INFO] [stdout] 318 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 | /     sqlx::query!(
[INFO] [stdout] 341 | |         r#"
[INFO] [stdout] 342 | |         update sessions
[INFO] [stdout] 343 | |            set state = 'CLOSED', close_reason = $2, closed_at = now()
[INFO] [stdout] ...   |
[INFO] [stdout] 347 | |         reason.as_str(),
[INFO] [stdout] 348 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:357:5
[INFO] [stdout]     |
[INFO] [stdout] 357 | /     sqlx::query!(
[INFO] [stdout] 358 | |         "update sessions set last_activity_at = now() where id = $1 and state = 'ACTIVE'",
[INFO] [stdout] 359 | |         id
[INFO] [stdout] 360 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:368:5
[INFO] [stdout]     |
[INFO] [stdout] 368 | /     sqlx::query!(
[INFO] [stdout] 369 | |         r#"
[INFO] [stdout] 370 | |         update sessions set state = 'EXPIRED', closed_at = now()
[INFO] [stdout] 371 | |          where id = $1 and state = 'UNCLAIMED'
[INFO] [stdout] 372 | |         "#,
[INFO] [stdout] 373 | |         id
[INFO] [stdout] 374 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:131:5
[INFO] [stdout]     |
[INFO] [stdout] 131 | /     sqlx::query_as!(
[INFO] [stdout] 132 | |         ReasonCode,
[INFO] [stdout] 133 | |         r#"
[INFO] [stdout] 134 | |         select id as "id!", code as "code!", label as "label!",
[INFO] [stdout] ...   |
[INFO] [stdout] 139 | |         id
[INFO] [stdout] 140 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:401:19
[INFO] [stdout]     |
[INFO] [stdout] 401 |       let expired = sqlx::query_scalar!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 402 | |         r#"
[INFO] [stdout] 403 | |         update sessions set state = 'EXPIRED', closed_at = now()
[INFO] [stdout] 404 | |          where state = 'UNCLAIMED'
[INFO] [stdout] ...   |
[INFO] [stdout] 408 | |         CLAIM_WINDOW_SECS as f64,
[INFO] [stdout] 409 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:149:5
[INFO] [stdout]     |
[INFO] [stdout] 149 | /     sqlx::query_as!(
[INFO] [stdout] 150 | |         ReasonCode,
[INFO] [stdout] 151 | |         r#"
[INFO] [stdout] 152 | |         insert into reason_codes (code, label, applies_to, sort_order, active)
[INFO] [stdout] ...   |
[INFO] [stdout] 162 | |         input.active,
[INFO] [stdout] 163 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:413:23
[INFO] [stdout]     |
[INFO] [stdout] 413 |       let idle_closed = sqlx::query_scalar!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 414 | |         r#"
[INFO] [stdout] 415 | |         update sessions
[INFO] [stdout] 416 | |            set state = 'CLOSED', close_reason = 'IDLE_TIMEOUT', closed_at = now()
[INFO] [stdout] ...   |
[INFO] [stdout] 421 | |         IDLE_TIMEOUT_SECS as f64,
[INFO] [stdout] 422 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:175:5
[INFO] [stdout]     |
[INFO] [stdout] 175 | /     sqlx::query_as!(
[INFO] [stdout] 176 | |         ReasonCode,
[INFO] [stdout] 177 | |         r#"
[INFO] [stdout] 178 | |         update reason_codes
[INFO] [stdout] ...   |
[INFO] [stdout] 191 | |         input.active,
[INFO] [stdout] 192 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:200:5
[INFO] [stdout]     |
[INFO] [stdout] 200 | /     sqlx::query_as!(
[INFO] [stdout] 201 | |         ReasonCode,
[INFO] [stdout] 202 | |         r#"
[INFO] [stdout] 203 | |         update reason_codes set active = false
[INFO] [stdout] ...   |
[INFO] [stdout] 209 | |         id
[INFO] [stdout] 210 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/terminal.rs:70:18
[INFO] [stdout]    |
[INFO] [stdout] 70 |       let reader = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 71 | |         ReaderStatus,
[INFO] [stdout] 72 | |         r#"
[INFO] [stdout] 73 | |         select count(*) > 0 as "installed!", max(last_seen_at) as last_seen_at
[INFO] [stdout] 74 | |           from devices
[INFO] [stdout] 75 | |         "#
[INFO] [stdout] 76 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/terminal.rs:82:17
[INFO] [stdout]    |
[INFO] [stdout] 82 |       let today = sqlx::query_as!(
[INFO] [stdout]    |  _________________^
[INFO] [stdout] 83 | |         TodayCounts,
[INFO] [stdout] 84 | |         r#"
[INFO] [stdout] 85 | |         select count(*)                                       as "movements!",
[INFO] [stdout] ...  |
[INFO] [stdout] 92 | |         since
[INFO] [stdout] 93 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/terminal.rs:101:18
[INFO] [stdout]     |
[INFO] [stdout] 101 |       let recent = sqlx::query_as!(
[INFO] [stdout]     |  __________________^
[INFO] [stdout] 102 | |         RecentMovement,
[INFO] [stdout] 103 | |         r#"
[INFO] [stdout] 104 | |         select l.id            as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 118 | |         since
[INFO] [stdout] 119 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:92:13
[INFO] [stdout]     |
[INFO] [stdout]  92 | /             sqlx::query_as!(
[INFO] [stdout]  93 | |                 ConsumptionRow,
[INFO] [stdout]  94 | |                 r#"
[INFO] [stdout]  95 | |                 select i.id::text                                  as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 111 | |                 to
[INFO] [stdout] 112 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:117:13
[INFO] [stdout]     |
[INFO] [stdout] 117 | /             sqlx::query_as!(
[INFO] [stdout] 118 | |                 ConsumptionRow,
[INFO] [stdout] 119 | |                 r#"
[INFO] [stdout] 120 | |                 select coalesce(m.id::text, 'unassigned')           as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 136 | |                 to
[INFO] [stdout] 137 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:142:13
[INFO] [stdout]     |
[INFO] [stdout] 142 | /             sqlx::query_as!(
[INFO] [stdout] 143 | |                 ConsumptionRow,
[INFO] [stdout] 144 | |                 r#"
[INFO] [stdout] 145 | |                 select o.id::text                                   as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 161 | |                 to
[INFO] [stdout] 162 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:167:13
[INFO] [stdout]     |
[INFO] [stdout] 167 | /             sqlx::query_as!(
[INFO] [stdout] 168 | |                 ConsumptionRow,
[INFO] [stdout] 169 | |                 r#"
[INFO] [stdout] 170 | |                 select coalesce(c.id::text, 'uncategorised')        as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 187 | |                 to
[INFO] [stdout] 188 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/reports.rs:193:13
[INFO] [stdout]     |
[INFO] [stdout] 193 | /             sqlx::query_as!(
[INFO] [stdout] 194 | |                 ConsumptionRow,
[INFO] [stdout] 195 | |                 r#"
[INFO] [stdout] 196 | |                 select to_char(date_trunc('month', l.created_at), 'YYYY-MM') as "bucket_key!",
[INFO] [stdout] ...   |
[INFO] [stdout] 211 | |                 to
[INFO] [stdout] 212 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:107:5
[INFO] [stdout]     |
[INFO] [stdout] 107 | /     sqlx::query_as!(
[INFO] [stdout] 108 | |         SessionRow,
[INFO] [stdout] 109 | |         r#"
[INFO] [stdout] 110 | |         select id             as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 123 | |         id
[INFO] [stdout] 124 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:158:20
[INFO] [stdout]     |
[INFO] [stdout] 158 |     let existing = sqlx::query_scalar!("select id from sessions where punch_id = $1", punch_id)
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:167:23
[INFO] [stdout]     |
[INFO] [stdout] 167 |       let operator_id = sqlx::query_scalar!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 168 | |         r#"
[INFO] [stdout] 169 | |         select o.id from punches p
[INFO] [stdout] 170 | |           join operators o on o.zk_user_id = p.zk_user_id and o.active
[INFO] [stdout] ...   |
[INFO] [stdout] 173 | |         punch_id
[INFO] [stdout] 174 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:183:22
[INFO] [stdout]     |
[INFO] [stdout] 183 |       let session_id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________________^
[INFO] [stdout] 184 | |         r#"
[INFO] [stdout] 185 | |         insert into sessions (operator_id, punch_id, state, manual_identity)
[INFO] [stdout] 186 | |         values ($1, $2, 'UNCLAIMED', false)
[INFO] [stdout] ...   |
[INFO] [stdout] 190 | |         punch_id,
[INFO] [stdout] 191 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:196:5
[INFO] [stdout]     |
[INFO] [stdout] 196 |     sqlx::query!("update punches set claimed = true where id = $1", punch_id)
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:209:16
[INFO] [stdout]     |
[INFO] [stdout] 209 |       let rows = sqlx::query_as!(
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 210 | |         UnclaimedSession,
[INFO] [stdout] 211 | |         r#"
[INFO] [stdout] 212 | |         select s.id          as "session_id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 228 | |         CLAIM_WINDOW_SECS as f64,
[INFO] [stdout] 229 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:260:19
[INFO] [stdout]     |
[INFO] [stdout] 260 |       let updated = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 261 | |         r#"
[INFO] [stdout] 262 | |         update sessions
[INFO] [stdout] 263 | |            set state = 'ACTIVE',
[INFO] [stdout] ...   |
[INFO] [stdout] 272 | |         tablet_id.0,
[INFO] [stdout] 273 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:304:14
[INFO] [stdout]     |
[INFO] [stdout] 304 |       let id = sqlx::query_scalar!(
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 305 | |         r#"
[INFO] [stdout] 306 | |         insert into sessions (
[INFO] [stdout] 307 | |             operator_id, punch_id, state, manual_identity,
[INFO] [stdout] ...   |
[INFO] [stdout] 317 | |         tablet_id.0,
[INFO] [stdout] 318 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 | /     sqlx::query!(
[INFO] [stdout] 341 | |         r#"
[INFO] [stdout] 342 | |         update sessions
[INFO] [stdout] 343 | |            set state = 'CLOSED', close_reason = $2, closed_at = now()
[INFO] [stdout] ...   |
[INFO] [stdout] 347 | |         reason.as_str(),
[INFO] [stdout] 348 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:357:5
[INFO] [stdout]     |
[INFO] [stdout] 357 | /     sqlx::query!(
[INFO] [stdout] 358 | |         "update sessions set last_activity_at = now() where id = $1 and state = 'ACTIVE'",
[INFO] [stdout] 359 | |         id
[INFO] [stdout] 360 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:368:5
[INFO] [stdout]     |
[INFO] [stdout] 368 | /     sqlx::query!(
[INFO] [stdout] 369 | |         r#"
[INFO] [stdout] 370 | |         update sessions set state = 'EXPIRED', closed_at = now()
[INFO] [stdout] 371 | |          where id = $1 and state = 'UNCLAIMED'
[INFO] [stdout] 372 | |         "#,
[INFO] [stdout] 373 | |         id
[INFO] [stdout] 374 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: 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)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:401:19
[INFO] [stdout]     |
[INFO] [stdout] 401 |       let expired = sqlx::query_scalar!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 402 | |         r#"
[INFO] [stdout] 403 | |         update sessions set state = 'EXPIRED', closed_at = now()
[INFO] [stdout] 404 | |          where state = 'UNCLAIMED'
[INFO] [stdout] ...   |
[INFO] [stdout] 408 | |         CLAIM_WINDOW_SECS as f64,
[INFO] [stdout] 409 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:413:23
[INFO] [stdout]     |
[INFO] [stdout] 413 |       let idle_closed = sqlx::query_scalar!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 414 | |         r#"
[INFO] [stdout] 415 | |         update sessions
[INFO] [stdout] 416 | |            set state = 'CLOSED', close_reason = 'IDLE_TIMEOUT', closed_at = now()
[INFO] [stdout] ...   |
[INFO] [stdout] 421 | |         IDLE_TIMEOUT_SECS as f64,
[INFO] [stdout] 422 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/terminal.rs:70:18
[INFO] [stdout]    |
[INFO] [stdout] 70 |       let reader = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 71 | |         ReaderStatus,
[INFO] [stdout] 72 | |         r#"
[INFO] [stdout] 73 | |         select count(*) > 0 as "installed!", max(last_seen_at) as last_seen_at
[INFO] [stdout] 74 | |           from devices
[INFO] [stdout] 75 | |         "#
[INFO] [stdout] 76 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> crates/store-db/src/terminal.rs:82:17
[INFO] [stdout]    |
[INFO] [stdout] 82 |       let today = sqlx::query_as!(
[INFO] [stdout]    |  _________________^
[INFO] [stdout] 83 | |         TodayCounts,
[INFO] [stdout] 84 | |         r#"
[INFO] [stdout] 85 | |         select count(*)                                       as "movements!",
[INFO] [stdout] ...  |
[INFO] [stdout] 92 | |         since
[INFO] [stdout] 93 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> crates/store-db/src/terminal.rs:101:18
[INFO] [stdout]     |
[INFO] [stdout] 101 |       let recent = sqlx::query_as!(
[INFO] [stdout]     |  __________________^
[INFO] [stdout] 102 | |         RecentMovement,
[INFO] [stdout] 103 | |         r#"
[INFO] [stdout] 104 | |         select l.id            as "id!",
[INFO] [stdout] ...   |
[INFO] [stdout] 118 | |         since
[INFO] [stdout] 119 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CLAIM_WINDOW_SECS` and `IDLE_TIMEOUT_SECS`
[INFO] [stdout]   --> crates/store-db/src/sessions.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 14 |     TransitionError, CLAIM_WINDOW_SECS, IDLE_TIMEOUT_SECS,
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CLAIM_WINDOW_SECS` and `IDLE_TIMEOUT_SECS`
[INFO] [stdout]   --> crates/store-db/src/sessions.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 14 |     TransitionError, CLAIM_WINDOW_SECS, IDLE_TIMEOUT_SECS,
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:86:15
[INFO] [stdout]    |
[INFO] [stdout] 86 |     if result.rows_affected() == 0 {
[INFO] [stdout]    |               ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider providing a type annotation
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]    = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout]    = note: `#[warn(method_call_on_diverging_infer_var)]` (part of `#[warn(future_incompatible)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:86:15
[INFO] [stdout]    |
[INFO] [stdout] 86 |     if result.rows_affected() == 0 {
[INFO] [stdout]    |               ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider providing a type annotation
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]    = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout]    = note: `#[warn(method_call_on_diverging_infer_var)]` (part of `#[warn(future_incompatible)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `rows_affected` found for type `!` in the current scope
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:86:15
[INFO] [stdout]    |
[INFO] [stdout] 86 |     if result.rows_affected() == 0 {
[INFO] [stdout]    |               ^^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:92:14
[INFO] [stdout]    |
[INFO] [stdout] 92 |             .ok_or(crate::DbError::NotFound { entity: "alert" })?;
[INFO] [stdout]    |              ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider providing a type annotation
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]    = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `rows_affected` found for type `!` in the current scope
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:86:15
[INFO] [stdout]    |
[INFO] [stdout] 86 |     if result.rows_affected() == 0 {
[INFO] [stdout]    |               ^^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:92:14
[INFO] [stdout]    |
[INFO] [stdout] 92 |             .ok_or(crate::DbError::NotFound { entity: "alert" })?;
[INFO] [stdout]    |              ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider providing a type annotation
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]    = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `ok_or` found for type `!` in the current scope
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:92:14
[INFO] [stdout]    |
[INFO] [stdout] 89 |         sqlx::query_scalar!("select id from stock_alerts where id = $1", alert_id)
[INFO] [stdout] 90 |             .fetch_optional(pool)
[INFO] [stdout] 91 |             .await?
[INFO] [stdout] 92 |             .ok_or(crate::DbError::NotFound { entity: "alert" })?;
[INFO] [stdout]    |              ^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `ok_or` found for type `!` in the current scope
[INFO] [stdout]   --> crates/store-db/src/alerts.rs:92:14
[INFO] [stdout]    |
[INFO] [stdout] 89 |         sqlx::query_scalar!("select id from stock_alerts where id = $1", alert_id)
[INFO] [stdout] 90 |             .fetch_optional(pool)
[INFO] [stdout] 91 |             .await?
[INFO] [stdout] 92 |             .ok_or(crate::DbError::NotFound { entity: "alert" })?;
[INFO] [stdout]    |              ^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/auth.rs:233:14
[INFO] [stdout]     |
[INFO] [stdout] 233 |     Ok(found.is_some())
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/auth.rs:233:14
[INFO] [stdout]     |
[INFO] [stdout] 233 |     Ok(found.is_some())
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `is_some` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/auth.rs:233:14
[INFO] [stdout]     |
[INFO] [stdout] 233 |     Ok(found.is_some())
[INFO] [stdout]     |              ^^^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/auth.rs:335:6
[INFO] [stdout]     |
[INFO] [stdout] 335 |     .or_not_found("tablet")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `is_some` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/auth.rs:233:14
[INFO] [stdout]     |
[INFO] [stdout] 233 |     Ok(found.is_some())
[INFO] [stdout]     |              ^^^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/auth.rs:335:6
[INFO] [stdout]     |
[INFO] [stdout] 335 |     .or_not_found("tablet")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/auth.rs:335:6
[INFO] [stdout]     |
[INFO] [stdout] 324 |     sqlx::query_as!(
[INFO] [stdout] 325 |         TabletRow,
[INFO] [stdout] 326 |         r#"
[INFO] [stdout] 327 |         select tablet_id as "tablet_id!", name, location,
[INFO] [stdout] 328 |                registered_at as "registered_at!", last_seen_at, active as "active!"
[INFO] [stdout] 329 |           from tablets where tablet_id = $1
[INFO] [stdout] 330 |         "#,
[INFO] [stdout] 331 |         tablet_id
[INFO] [stdout] 332 |     )
[INFO] [stdout] 333 |     .fetch_optional(pool)
[INFO] [stdout] 334 |     .await?
[INFO] [stdout] 335 |     .or_not_found("tablet")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/items.rs:207:6
[INFO] [stdout]     |
[INFO] [stdout] 207 |     .or_not_found("item")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/items.rs:207:6
[INFO] [stdout]     |
[INFO] [stdout] 177 |     sqlx::query_as!(
[INFO] [stdout] 178 |         ItemView,
[INFO] [stdout] 179 |         r#"
[INFO] [stdout] 180 |         select i.id                as "id!",
[INFO] [stdout] 181 |                i.item_code         as "item_code!",
[INFO] [stdout] 182 |                i.description       as "description!",
[INFO] [stdout] 183 |                i.uom               as "uom!",
[INFO] [stdout] 184 |                i.category_id,
[INFO] [stdout] 185 |                c.name              as "category_name?",
[INFO] [stdout] 186 |                i.iso_code,
[INFO] [stdout] 187 |                i.grade,
[INFO] [stdout] 188 |                i.manufacturer,
[INFO] [stdout] 189 |                i.mfr_part_no,
[INFO] [stdout] 190 |                i.bin_location,
[INFO] [stdout] 191 |                i.unit_cost,
[INFO] [stdout] 192 |                i.reorder_level     as "reorder_level!",
[INFO] [stdout] 193 |                i.reorder_qty,
[INFO] [stdout] 194 |                i.allow_negative    as "allow_negative!",
[INFO] [stdout] 195 |                i.active            as "active!",
[INFO] [stdout] 196 |                coalesce(s.on_hand, 0)        as "on_hand!",
[INFO] [stdout] 197 |                coalesce(s.alert_state, 'OK') as "alert_state!"
[INFO] [stdout] 198 |           from items i
[INFO] [stdout] 199 |           left join item_categories c on c.id = i.category_id
[INFO] [stdout] 200 |           left join item_stock s      on s.item_id = i.id
[INFO] [stdout] 201 |          where i.id = $1
[INFO] [stdout] 202 |         "#,
[INFO] [stdout] 203 |         id
[INFO] [stdout] 204 |     )
[INFO] [stdout] 205 |     .fetch_optional(pool)
[INFO] [stdout] 206 |     .await?
[INFO] [stdout] 207 |     .or_not_found("item")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/auth.rs:335:6
[INFO] [stdout]     |
[INFO] [stdout] 324 |     sqlx::query_as!(
[INFO] [stdout] 325 |         TabletRow,
[INFO] [stdout] 326 |         r#"
[INFO] [stdout] 327 |         select tablet_id as "tablet_id!", name, location,
[INFO] [stdout] 328 |                registered_at as "registered_at!", last_seen_at, active as "active!"
[INFO] [stdout] 329 |           from tablets where tablet_id = $1
[INFO] [stdout] 330 |         "#,
[INFO] [stdout] 331 |         tablet_id
[INFO] [stdout] 332 |     )
[INFO] [stdout] 333 |     .fetch_optional(pool)
[INFO] [stdout] 334 |     .await?
[INFO] [stdout] 335 |     .or_not_found("tablet")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/items.rs:207:6
[INFO] [stdout]     |
[INFO] [stdout] 207 |     .or_not_found("item")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/items.rs:207:6
[INFO] [stdout]     |
[INFO] [stdout] 177 |     sqlx::query_as!(
[INFO] [stdout] 178 |         ItemView,
[INFO] [stdout] 179 |         r#"
[INFO] [stdout] 180 |         select i.id                as "id!",
[INFO] [stdout] 181 |                i.item_code         as "item_code!",
[INFO] [stdout] 182 |                i.description       as "description!",
[INFO] [stdout] 183 |                i.uom               as "uom!",
[INFO] [stdout] 184 |                i.category_id,
[INFO] [stdout] 185 |                c.name              as "category_name?",
[INFO] [stdout] 186 |                i.iso_code,
[INFO] [stdout] 187 |                i.grade,
[INFO] [stdout] 188 |                i.manufacturer,
[INFO] [stdout] 189 |                i.mfr_part_no,
[INFO] [stdout] 190 |                i.bin_location,
[INFO] [stdout] 191 |                i.unit_cost,
[INFO] [stdout] 192 |                i.reorder_level     as "reorder_level!",
[INFO] [stdout] 193 |                i.reorder_qty,
[INFO] [stdout] 194 |                i.allow_negative    as "allow_negative!",
[INFO] [stdout] 195 |                i.active            as "active!",
[INFO] [stdout] 196 |                coalesce(s.on_hand, 0)        as "on_hand!",
[INFO] [stdout] 197 |                coalesce(s.alert_state, 'OK') as "alert_state!"
[INFO] [stdout] 198 |           from items i
[INFO] [stdout] 199 |           left join item_categories c on c.id = i.category_id
[INFO] [stdout] 200 |           left join item_stock s      on s.item_id = i.id
[INFO] [stdout] 201 |          where i.id = $1
[INFO] [stdout] 202 |         "#,
[INFO] [stdout] 203 |         id
[INFO] [stdout] 204 |     )
[INFO] [stdout] 205 |     .fetch_optional(pool)
[INFO] [stdout] 206 |     .await?
[INFO] [stdout] 207 |     .or_not_found("item")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:255:10
[INFO] [stdout]     |
[INFO] [stdout] 255 |         .as_deref()
[INFO] [stdout]     |          ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_deref` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:255:10
[INFO] [stdout]     |
[INFO] [stdout] 254 |     let crossed_threshold = prior_alert_state
[INFO] [stdout] 255 |         .as_deref()
[INFO] [stdout]     |          ^^^^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 304 |     Ok(row.map(|r| MovementReceipt {
[INFO] [stdout]     |            ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:255:10
[INFO] [stdout]     |
[INFO] [stdout] 255 |         .as_deref()
[INFO] [stdout]     |          ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: `!` is not an iterator
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 304 |     Ok(row.map(|r| MovementReceipt {
[INFO] [stdout]     |            ^^^ `!` is not an iterator
[INFO] [stdout]     |
[INFO] [stdout]     = note: the following trait bounds were not satisfied:
[INFO] [stdout]             `!: Iterator`
[INFO] [stdout]             which is required by `&mut !: Iterator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:330:6
[INFO] [stdout]     |
[INFO] [stdout] 330 |     .or_not_found("ledger entry")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_deref` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:255:10
[INFO] [stdout]     |
[INFO] [stdout] 254 |     let crossed_threshold = prior_alert_state
[INFO] [stdout] 255 |         .as_deref()
[INFO] [stdout]     |          ^^^^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:330:6
[INFO] [stdout]     |
[INFO] [stdout] 319 |     let row = sqlx::query!(
[INFO] [stdout] 320 |         r#"
[INFO] [stdout] 321 |         select id, item_id, delta_qty, txn_type, operator_id, session_id,
[INFO] [stdout] 322 |                machine_id, reason_id, note, unit_cost, device_ts, created_at,
[INFO] [stdout] 323 |                reverses_id
[INFO] [stdout] 324 |           from stock_ledger where id = $1
[INFO] [stdout] 325 |         "#,
[INFO] [stdout] 326 |         id
[INFO] [stdout] 327 |     )
[INFO] [stdout] 328 |     .fetch_optional(pool)
[INFO] [stdout] 329 |     .await?
[INFO] [stdout] 330 |     .or_not_found("ledger entry")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 304 |     Ok(row.map(|r| MovementReceipt {
[INFO] [stdout]     |            ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: `!` is not an iterator
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 304 |     Ok(row.map(|r| MovementReceipt {
[INFO] [stdout]     |            ^^^ `!` is not an iterator
[INFO] [stdout]     |
[INFO] [stdout]     = note: the following trait bounds were not satisfied:
[INFO] [stdout]             `!: Iterator`
[INFO] [stdout]             which is required by `&mut !: Iterator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:330:6
[INFO] [stdout]     |
[INFO] [stdout] 330 |     .or_not_found("ledger entry")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/machines.rs:113:6
[INFO] [stdout]     |
[INFO] [stdout] 113 |     .or_not_found("machine")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/machines.rs:113:6
[INFO] [stdout]     |
[INFO] [stdout] 103 |     sqlx::query_as!(
[INFO] [stdout] 104 |         Machine,
[INFO] [stdout] 105 |         r#"
[INFO] [stdout] 106 |         select id as "id!", code as "code!", name, active as "active!"
[INFO] [stdout] 107 |           from machines where id = $1
[INFO] [stdout] 108 |         "#,
[INFO] [stdout] 109 |         id
[INFO] [stdout] 110 |     )
[INFO] [stdout] 111 |     .fetch_optional(pool)
[INFO] [stdout] 112 |     .await?
[INFO] [stdout] 113 |     .or_not_found("machine")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/machines.rs:172:6
[INFO] [stdout]     |
[INFO] [stdout] 172 |     .or_not_found("machine")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/ledger.rs:330:6
[INFO] [stdout]     |
[INFO] [stdout] 319 |     let row = sqlx::query!(
[INFO] [stdout] 320 |         r#"
[INFO] [stdout] 321 |         select id, item_id, delta_qty, txn_type, operator_id, session_id,
[INFO] [stdout] 322 |                machine_id, reason_id, note, unit_cost, device_ts, created_at,
[INFO] [stdout] 323 |                reverses_id
[INFO] [stdout] 324 |           from stock_ledger where id = $1
[INFO] [stdout] 325 |         "#,
[INFO] [stdout] 326 |         id
[INFO] [stdout] 327 |     )
[INFO] [stdout] 328 |     .fetch_optional(pool)
[INFO] [stdout] 329 |     .await?
[INFO] [stdout] 330 |     .or_not_found("ledger entry")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/machines.rs:113:6
[INFO] [stdout]     |
[INFO] [stdout] 113 |     .or_not_found("machine")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/machines.rs:172:6
[INFO] [stdout]     |
[INFO] [stdout] 161 |     sqlx::query_as!(
[INFO] [stdout] 162 |         Machine,
[INFO] [stdout] 163 |         r#"
[INFO] [stdout] 164 |         update machines set active = false
[INFO] [stdout] 165 |          where id = $1
[INFO] [stdout] 166 |         returning id as "id!", code as "code!", name, active as "active!"
[INFO] [stdout] 167 |         "#,
[INFO] [stdout] 168 |         id
[INFO] [stdout] 169 |     )
[INFO] [stdout] 170 |     .fetch_optional(pool)
[INFO] [stdout] 171 |     .await?
[INFO] [stdout] 172 |     .or_not_found("machine")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]   --> crates/store-db/src/operators.rs:42:6
[INFO] [stdout]    |
[INFO] [stdout] 42 |     .or_not_found("operator")
[INFO] [stdout]    |      ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider providing a type annotation
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]    = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/operators.rs:42:6
[INFO] [stdout]     |
[INFO] [stdout]  31 |     sqlx::query_as!(
[INFO] [stdout]  32 |         Operator,
[INFO] [stdout]  33 |         r#"
[INFO] [stdout]  34 |         select id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout]  35 |                zk_user_id, role as "role!", department, active as "active!"
[INFO] [stdout]  36 |           from operators where id = $1
[INFO] [stdout]  37 |         "#,
[INFO] [stdout]  38 |         id
[INFO] [stdout]  39 |     )
[INFO] [stdout]  40 |     .fetch_optional(pool)
[INFO] [stdout]  41 |     .await?
[INFO] [stdout]  42 |     .or_not_found("operator")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]   --> crates/store-db/src/operators.rs:81:12
[INFO] [stdout]    |
[INFO] [stdout] 81 |     Ok(row.map(|r| OperatorCredentials {
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider providing a type annotation
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]    = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/machines.rs:113:6
[INFO] [stdout]     |
[INFO] [stdout] 103 |     sqlx::query_as!(
[INFO] [stdout] 104 |         Machine,
[INFO] [stdout] 105 |         r#"
[INFO] [stdout] 106 |         select id as "id!", code as "code!", name, active as "active!"
[INFO] [stdout] 107 |           from machines where id = $1
[INFO] [stdout] 108 |         "#,
[INFO] [stdout] 109 |         id
[INFO] [stdout] 110 |     )
[INFO] [stdout] 111 |     .fetch_optional(pool)
[INFO] [stdout] 112 |     .await?
[INFO] [stdout] 113 |     .or_not_found("machine")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/machines.rs:172:6
[INFO] [stdout]     |
[INFO] [stdout] 172 |     .or_not_found("machine")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: `!` is not an iterator
[INFO] [stdout]   --> crates/store-db/src/operators.rs:81:12
[INFO] [stdout]    |
[INFO] [stdout] 81 |     Ok(row.map(|r| OperatorCredentials {
[INFO] [stdout]    |            ^^^ `!` is not an iterator
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:
[INFO] [stdout]            `!: Iterator`
[INFO] [stdout]            which is required by `&mut !: Iterator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/operators.rs:296:6
[INFO] [stdout]     |
[INFO] [stdout] 296 |     .or_not_found("operator")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/machines.rs:172:6
[INFO] [stdout]     |
[INFO] [stdout] 161 |     sqlx::query_as!(
[INFO] [stdout] 162 |         Machine,
[INFO] [stdout] 163 |         r#"
[INFO] [stdout] 164 |         update machines set active = false
[INFO] [stdout] 165 |          where id = $1
[INFO] [stdout] 166 |         returning id as "id!", code as "code!", name, active as "active!"
[INFO] [stdout] 167 |         "#,
[INFO] [stdout] 168 |         id
[INFO] [stdout] 169 |     )
[INFO] [stdout] 170 |     .fetch_optional(pool)
[INFO] [stdout] 171 |     .await?
[INFO] [stdout] 172 |     .or_not_found("machine")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]   --> crates/store-db/src/operators.rs:42:6
[INFO] [stdout]    |
[INFO] [stdout] 42 |     .or_not_found("operator")
[INFO] [stdout]    |      ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider providing a type annotation
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]    = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/operators.rs:296:6
[INFO] [stdout]     |
[INFO] [stdout] 284 |     let updated = sqlx::query_as!(
[INFO] [stdout] 285 |         Operator,
[INFO] [stdout] 286 |         r#"
[INFO] [stdout] 287 |         update operators set active = false
[INFO] [stdout] 288 |          where id = $1
[INFO] [stdout] 289 |         returning id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout] 290 |                   zk_user_id, role as "role!", department, active as "active!"
[INFO] [stdout] 291 |         "#,
[INFO] [stdout] 292 |         id
[INFO] [stdout] 293 |     )
[INFO] [stdout] 294 |     .fetch_optional(&mut *tx)
[INFO] [stdout] 295 |     .await?
[INFO] [stdout] 296 |     .or_not_found("operator")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/operators.rs:42:6
[INFO] [stdout]     |
[INFO] [stdout]  31 |     sqlx::query_as!(
[INFO] [stdout]  32 |         Operator,
[INFO] [stdout]  33 |         r#"
[INFO] [stdout]  34 |         select id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout]  35 |                zk_user_id, role as "role!", department, active as "active!"
[INFO] [stdout]  36 |           from operators where id = $1
[INFO] [stdout]  37 |         "#,
[INFO] [stdout]  38 |         id
[INFO] [stdout]  39 |     )
[INFO] [stdout]  40 |     .fetch_optional(pool)
[INFO] [stdout]  41 |     .await?
[INFO] [stdout]  42 |     .or_not_found("operator")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/punches.rs:104:6
[INFO] [stdout]     |
[INFO] [stdout] 104 |     .or_not_found("punch")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]   --> crates/store-db/src/operators.rs:81:12
[INFO] [stdout]    |
[INFO] [stdout] 81 |     Ok(row.map(|r| OperatorCredentials {
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider providing a type annotation
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]    = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: `!` is not an iterator
[INFO] [stdout]   --> crates/store-db/src/operators.rs:81:12
[INFO] [stdout]    |
[INFO] [stdout] 81 |     Ok(row.map(|r| OperatorCredentials {
[INFO] [stdout]    |            ^^^ `!` is not an iterator
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:
[INFO] [stdout]            `!: Iterator`
[INFO] [stdout]            which is required by `&mut !: Iterator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/punches.rs:104:6
[INFO] [stdout]     |
[INFO] [stdout]  93 |     let existing = sqlx::query_scalar!(
[INFO] [stdout]  94 |         r#"
[INFO] [stdout]  95 |         select id from punches
[INFO] [stdout]  96 |          where device_id = $1 and zk_user_id = $2 and device_ts is not distinct from $3
[INFO] [stdout]  97 |         "#,
[INFO] [stdout]  98 |         device_id,
[INFO] [stdout]  99 |         event.external_user_id,
[INFO] [stdout] 100 |         event.device_ts,
[INFO] [stdout] 101 |     )
[INFO] [stdout] 102 |     .fetch_optional(pool)
[INFO] [stdout] 103 |     .await?
[INFO] [stdout] 104 |     .or_not_found("punch")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/operators.rs:296:6
[INFO] [stdout]     |
[INFO] [stdout] 296 |     .or_not_found("operator")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:143:6
[INFO] [stdout]     |
[INFO] [stdout] 143 |     .or_not_found("reason code")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:143:6
[INFO] [stdout]     |
[INFO] [stdout] 131 |     sqlx::query_as!(
[INFO] [stdout] 132 |         ReasonCode,
[INFO] [stdout] 133 |         r#"
[INFO] [stdout] 134 |         select id as "id!", code as "code!", label as "label!",
[INFO] [stdout] 135 |                applies_to as "applies_to!", sort_order as "sort_order!",
[INFO] [stdout] 136 |                active as "active!"
[INFO] [stdout] 137 |           from reason_codes where id = $1
[INFO] [stdout] 138 |         "#,
[INFO] [stdout] 139 |         id
[INFO] [stdout] 140 |     )
[INFO] [stdout] 141 |     .fetch_optional(pool)
[INFO] [stdout] 142 |     .await?
[INFO] [stdout] 143 |     .or_not_found("reason code")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/operators.rs:296:6
[INFO] [stdout]     |
[INFO] [stdout] 284 |     let updated = sqlx::query_as!(
[INFO] [stdout] 285 |         Operator,
[INFO] [stdout] 286 |         r#"
[INFO] [stdout] 287 |         update operators set active = false
[INFO] [stdout] 288 |          where id = $1
[INFO] [stdout] 289 |         returning id as "id!", emp_code as "emp_code!", full_name as "full_name!",
[INFO] [stdout] 290 |                   zk_user_id, role as "role!", department, active as "active!"
[INFO] [stdout] 291 |         "#,
[INFO] [stdout] 292 |         id
[INFO] [stdout] 293 |     )
[INFO] [stdout] 294 |     .fetch_optional(&mut *tx)
[INFO] [stdout] 295 |     .await?
[INFO] [stdout] 296 |     .or_not_found("operator")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:213:6
[INFO] [stdout]     |
[INFO] [stdout] 213 |     .or_not_found("reason code")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/punches.rs:104:6
[INFO] [stdout]     |
[INFO] [stdout] 104 |     .or_not_found("punch")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:213:6
[INFO] [stdout]     |
[INFO] [stdout] 200 |     sqlx::query_as!(
[INFO] [stdout] 201 |         ReasonCode,
[INFO] [stdout] 202 |         r#"
[INFO] [stdout] 203 |         update reason_codes set active = false
[INFO] [stdout] 204 |          where id = $1
[INFO] [stdout] 205 |         returning id as "id!", code as "code!", label as "label!",
[INFO] [stdout] 206 |                   applies_to as "applies_to!", sort_order as "sort_order!",
[INFO] [stdout] 207 |                   active as "active!"
[INFO] [stdout] 208 |         "#,
[INFO] [stdout] 209 |         id
[INFO] [stdout] 210 |     )
[INFO] [stdout] 211 |     .fetch_optional(pool)
[INFO] [stdout] 212 |     .await?
[INFO] [stdout] 213 |     .or_not_found("reason code")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:127:6
[INFO] [stdout]     |
[INFO] [stdout] 127 |     .or_not_found("session")?
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/punches.rs:104:6
[INFO] [stdout]     |
[INFO] [stdout]  93 |     let existing = sqlx::query_scalar!(
[INFO] [stdout]  94 |         r#"
[INFO] [stdout]  95 |         select id from punches
[INFO] [stdout]  96 |          where device_id = $1 and zk_user_id = $2 and device_ts is not distinct from $3
[INFO] [stdout]  97 |         "#,
[INFO] [stdout]  98 |         device_id,
[INFO] [stdout]  99 |         event.external_user_id,
[INFO] [stdout] 100 |         event.device_ts,
[INFO] [stdout] 101 |     )
[INFO] [stdout] 102 |     .fetch_optional(pool)
[INFO] [stdout] 103 |     .await?
[INFO] [stdout] 104 |     .or_not_found("punch")?;
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:143:6
[INFO] [stdout]     |
[INFO] [stdout] 143 |     .or_not_found("reason code")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:127:6
[INFO] [stdout]     |
[INFO] [stdout] 107 |     sqlx::query_as!(
[INFO] [stdout] 108 |         SessionRow,
[INFO] [stdout] 109 |         r#"
[INFO] [stdout] 110 |         select id             as "id!",
[INFO] [stdout] 111 |                operator_id    as "operator_id!",
[INFO] [stdout] 112 |                punch_id,
[INFO] [stdout] 113 |                state          as "state!",
[INFO] [stdout] 114 |                tablet_id,
[INFO] [stdout] 115 |                close_reason,
[INFO] [stdout] 116 |                manual_identity as "manual_identity!",
[INFO] [stdout] 117 |                opened_at      as "opened_at!",
[INFO] [stdout] 118 |                claimed_at,
[INFO] [stdout] 119 |                closed_at,
[INFO] [stdout] 120 |                last_activity_at as "last_activity_at!"
[INFO] [stdout] 121 |           from sessions where id = $1
[INFO] [stdout] 122 |         "#,
[INFO] [stdout] 123 |         id
[INFO] [stdout] 124 |     )
[INFO] [stdout] 125 |     .fetch_optional(pool)
[INFO] [stdout] 126 |     .await?
[INFO] [stdout] 127 |     .or_not_found("session")?
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:143:6
[INFO] [stdout]     |
[INFO] [stdout] 131 |     sqlx::query_as!(
[INFO] [stdout] 132 |         ReasonCode,
[INFO] [stdout] 133 |         r#"
[INFO] [stdout] 134 |         select id as "id!", code as "code!", label as "label!",
[INFO] [stdout] 135 |                applies_to as "applies_to!", sort_order as "sort_order!",
[INFO] [stdout] 136 |                active as "active!"
[INFO] [stdout] 137 |           from reason_codes where id = $1
[INFO] [stdout] 138 |         "#,
[INFO] [stdout] 139 |         id
[INFO] [stdout] 140 |     )
[INFO] [stdout] 141 |     .fetch_optional(pool)
[INFO] [stdout] 142 |     .await?
[INFO] [stdout] 143 |     .or_not_found("reason code")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:213:6
[INFO] [stdout]     |
[INFO] [stdout] 213 |     .or_not_found("reason code")
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:277:16
[INFO] [stdout]     |
[INFO] [stdout] 277 |     if updated.is_none() {
[INFO] [stdout]     |                ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/reason_codes.rs:213:6
[INFO] [stdout]     |
[INFO] [stdout] 200 |     sqlx::query_as!(
[INFO] [stdout] 201 |         ReasonCode,
[INFO] [stdout] 202 |         r#"
[INFO] [stdout] 203 |         update reason_codes set active = false
[INFO] [stdout] 204 |          where id = $1
[INFO] [stdout] 205 |         returning id as "id!", code as "code!", label as "label!",
[INFO] [stdout] 206 |                   applies_to as "applies_to!", sort_order as "sort_order!",
[INFO] [stdout] 207 |                   active as "active!"
[INFO] [stdout] 208 |         "#,
[INFO] [stdout] 209 |         id
[INFO] [stdout] 210 |     )
[INFO] [stdout] 211 |     .fetch_optional(pool)
[INFO] [stdout] 212 |     .await?
[INFO] [stdout] 213 |     .or_not_found("reason code")
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:127:6
[INFO] [stdout]     |
[INFO] [stdout] 127 |     .or_not_found("session")?
[INFO] [stdout]     |      ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `is_none` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:277:16
[INFO] [stdout]     |
[INFO] [stdout] 277 |     if updated.is_none() {
[INFO] [stdout]     |                ^^^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `or_not_found` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:127:6
[INFO] [stdout]     |
[INFO] [stdout] 107 |     sqlx::query_as!(
[INFO] [stdout] 108 |         SessionRow,
[INFO] [stdout] 109 |         r#"
[INFO] [stdout] 110 |         select id             as "id!",
[INFO] [stdout] 111 |                operator_id    as "operator_id!",
[INFO] [stdout] 112 |                punch_id,
[INFO] [stdout] 113 |                state          as "state!",
[INFO] [stdout] 114 |                tablet_id,
[INFO] [stdout] 115 |                close_reason,
[INFO] [stdout] 116 |                manual_identity as "manual_identity!",
[INFO] [stdout] 117 |                opened_at      as "opened_at!",
[INFO] [stdout] 118 |                claimed_at,
[INFO] [stdout] 119 |                closed_at,
[INFO] [stdout] 120 |                last_activity_at as "last_activity_at!"
[INFO] [stdout] 121 |           from sessions where id = $1
[INFO] [stdout] 122 |         "#,
[INFO] [stdout] 123 |         id
[INFO] [stdout] 124 |     )
[INFO] [stdout] 125 |     .fetch_optional(pool)
[INFO] [stdout] 126 |     .await?
[INFO] [stdout] 127 |     .or_not_found("session")?
[INFO] [stdout]     |      ^^^^^^^^^^^^ method not found in `!`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `FoundExt` defines an item `or_not_found`, perhaps you need to implement it
[INFO] [stdout]    --> crates/store-db/src/error.rs:118:1
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub trait FoundExt<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method call on a diverging inference variable
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:277:16
[INFO] [stdout]     |
[INFO] [stdout] 277 |     if updated.is_none() {
[INFO] [stdout]     |                ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider providing a type annotation
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `is_none` found for type `!` in the current scope
[INFO] [stdout]    --> crates/store-db/src/sessions.rs:277:16
[INFO] [stdout]     |
[INFO] [stdout] 277 |     if updated.is_none() {
[INFO] [stdout]     |                ^^^^^^^ method not found in `!`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `store-db` (lib) due to 96 previous errors; 37 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `store-db` (lib test) due to 96 previous errors; 37 warnings emitted
[INFO] [stderr] warning: unused dependency `store-core`
[INFO] [stderr]   --> crates/store-label/Cargo.toml:12:1
[INFO] [stderr]    |
[INFO] [stderr] 12 | store-core = { workspace = true }
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `store-core`
[INFO] [stderr] warning: `store-label` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "inspect" "afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1", kill_on_drop: false }`
[INFO] [stdout] afc1ac7cae7efa3ea636353b5aed2f883d901d8abf7f2223fed239a4239eacd1
