[INFO] cloning repository https://github.com/Intelix8996/dp-flights-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Intelix8996/dp-flights-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIntelix8996%2Fdp-flights-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIntelix8996%2Fdp-flights-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c0196cade9066e46da0ef9b1ce0f39a700ae779e [INFO] checking Intelix8996/dp-flights-backend/c0196cade9066e46da0ef9b1ce0f39a700ae779e against master#e9182f195b8505c87c4bd055b9f6e114ccda0981 for pr-144098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIntelix8996%2Fdp-flights-backend" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Intelix8996/dp-flights-backend [INFO] finished tweaking git repo https://github.com/Intelix8996/dp-flights-backend [INFO] tweaked toml for git repo https://github.com/Intelix8996/dp-flights-backend written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Intelix8996/dp-flights-backend on toolchain e9182f195b8505c87c4bd055b9f6e114ccda0981 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Intelix8996/dp-flights-backend 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" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zstd-safe v7.1.0 [INFO] [stderr] Downloaded zstd v0.13.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33f3810f8330552d29a7a5c98bbdbef145fcfbb8eedfc99426f36365318c48c5 [INFO] running `Command { std: "docker" "start" "-a" "33f3810f8330552d29a7a5c98bbdbef145fcfbb8eedfc99426f36365318c48c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33f3810f8330552d29a7a5c98bbdbef145fcfbb8eedfc99426f36365318c48c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33f3810f8330552d29a7a5c98bbdbef145fcfbb8eedfc99426f36365318c48c5", kill_on_drop: false }` [INFO] [stdout] 33f3810f8330552d29a7a5c98bbdbef145fcfbb8eedfc99426f36365318c48c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b4624d712f5904214b4aab774fdca5f183301b38420f346d450cfba9dec88de [INFO] running `Command { std: "docker" "start" "-a" "8b4624d712f5904214b4aab774fdca5f183301b38420f346d450cfba9dec88de", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde v1.0.199 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling rust_decimal v1.35.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling zstd-sys v2.0.10+zstd.1.5.6 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling serde_derive v1.0.199 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling zstd-safe v7.1.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling sqlformat v0.2.3 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking brotli-decompressor v2.5.1 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking brotli v3.5.0 [INFO] [stderr] Compiling actix-router v0.5.2 [INFO] [stderr] Checking zstd v0.13.1 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Checking actix-server v2.3.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking actix-http v3.6.0 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking actix-web v4.5.1 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking dp-flights-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | match sqlx::query!("SELECT DISTINCT city FROM airports") [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 35 | | Airport, [INFO] [stdout] 36 | | "SELECT airport_name as name, airport_code as code FROM airports" [INFO] [stdout] 37 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / sqlx::query_as!( [INFO] [stdout] 52 | | Airport, [INFO] [stdout] 53 | | "SELECT airport_name as name, airport_code as code FROM airports WHERE city=$1", [INFO] [stdout] 54 | | city [INFO] [stdout] 55 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:84:11 [INFO] [stdout] | [INFO] [stdout] 84 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 85 | | InboundRoute, [INFO] [stdout] 86 | | " [INFO] [stdout] 87 | | SELECT DISTINCT [INFO] [stdout] ... | [INFO] [stdout] 96 | | path.as_str() [INFO] [stdout] 97 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 111 | | OutboundRoute, [INFO] [stdout] 112 | | " [INFO] [stdout] 113 | | SELECT DISTINCT [INFO] [stdout] ... | [INFO] [stdout] 122 | | path.as_str() [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/prices.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | sqlx::query!("DROP TABLE IF EXISTS prices").execute(pool).await.unwrap(); [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/prices.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / sqlx::query!( [INFO] [stdout] 10 | | " [INFO] [stdout] 11 | | CREATE TABLE prices [INFO] [stdout] ... | [INFO] [stdout] 19 | | " [INFO] [stdout] 20 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/prices.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / sqlx::query!( [INFO] [stdout] 26 | | " [INFO] [stdout] 27 | | INSERT INTO prices (flight_no, fare_conditions, amount) [INFO] [stdout] 28 | | SELECT DISTINCT flight_no, fare_conditions, min(DISTINCT amount) AS price [INFO] [stdout] ... | [INFO] [stdout] 33 | | " [INFO] [stdout] 34 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/prices.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / sqlx::query!( [INFO] [stdout] 40 | | " [INFO] [stdout] 41 | | INSERT INTO prices (flight_no, fare_conditions, amount) [INFO] [stdout] 42 | | SELECT DISTINCT flight_no, 'Comfort' as fare_conditions, max(DISTINCT amount) AS comfort_price [INFO] [stdout] ... | [INFO] [stdout] 47 | | " [INFO] [stdout] 48 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/seats.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | sqlx::query!("DROP TABLE IF EXISTS seats_comfort").execute(pool).await.unwrap(); [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/seats.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / sqlx::query!( [INFO] [stdout] 10 | | " [INFO] [stdout] 11 | | CREATE TABLE seats_comfort [INFO] [stdout] ... | [INFO] [stdout] 19 | | " [INFO] [stdout] 20 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/seats.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / sqlx::query!( [INFO] [stdout] 26 | | " [INFO] [stdout] 27 | | INSERT INTO seats_comfort [INFO] [stdout] 28 | | SELECT * FROM seats; [INFO] [stdout] 29 | | " [INFO] [stdout] 30 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/seats.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / sqlx::query!( [INFO] [stdout] 36 | | " [INFO] [stdout] 37 | | UPDATE seats_comfort [INFO] [stdout] 38 | | SET fare_conditions = 'Comfort' [INFO] [stdout] ... | [INFO] [stdout] 51 | | " [INFO] [stdout] 52 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/find_flights.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / sqlx::query_as!( [INFO] [stdout] 27 | | FlightRecord, [INFO] [stdout] 28 | | " [INFO] [stdout] 29 | | WITH RECURSIVE flights_recur AS ( [INFO] [stdout] ... | [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_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/booking.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | let prices: HashMap = sqlx::query!( [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 22 | | " [INFO] [stdout] 23 | | SELECT flights_v.flight_id, prices.amount [INFO] [stdout] 24 | | FROM flights_v [INFO] [stdout] ... | [INFO] [stdout] 30 | | String::from(parameters.fare_conditions) [INFO] [stdout] 31 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/booking.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / sqlx::query!( [INFO] [stdout] 49 | | " [INFO] [stdout] 50 | | INSERT INTO bookings (book_ref, book_date, total_amount) [INFO] [stdout] 51 | | VALUES ($1, bookings.now(), $2); [INFO] [stdout] 52 | | ", [INFO] [stdout] 53 | | book_ref, Decimal::from(total_price) [INFO] [stdout] 54 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/booking.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / sqlx::query!( [INFO] [stdout] 59 | | " [INFO] [stdout] 60 | | INSERT INTO tickets (ticket_no, book_ref, passenger_id, passenger_name) [INFO] [stdout] 61 | | VALUES ($1, $2, $3, $4); [INFO] [stdout] 62 | | ", [INFO] [stdout] 63 | | ticket_no, book_ref, parameters.passenger_id, parameters.passenger_name [INFO] [stdout] 64 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/booking.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | / sqlx::query!( [INFO] [stdout] 72 | | " [INFO] [stdout] 73 | | INSERT INTO ticket_flights (ticket_no, flight_id, fare_conditions, amount) [INFO] [stdout] 74 | | VALUES ($1, $2, $3, $4); [INFO] [stdout] 75 | | ", [INFO] [stdout] 76 | | ticket_no, flight_id, String::from(parameters.fare_conditions), price [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | let boarded_count = sqlx::query!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 18 | | " [INFO] [stdout] 19 | | SELECT COUNT(ticket_no) FROM boarding_passes [INFO] [stdout] 20 | | WHERE flight_id = $1 [INFO] [stdout] 21 | | ", [INFO] [stdout] 22 | | flight_id [INFO] [stdout] 23 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | let fare_condition = match sqlx::query!( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 32 | | " [INFO] [stdout] 33 | | SELECT fare_conditions FROM ticket_flights [INFO] [stdout] 34 | | WHERE ticket_no = $1 AND flight_id = $2; [INFO] [stdout] 35 | | ", [INFO] [stdout] 36 | | ticket_no, flight_id [INFO] [stdout] 37 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | let aircraft_code = sqlx::query!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 46 | | " [INFO] [stdout] 47 | | SELECT aircraft_code FROM flights_v [INFO] [stdout] 48 | | WHERE flight_id = $1 [INFO] [stdout] 49 | | ", [INFO] [stdout] 50 | | flight_id [INFO] [stdout] 51 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let place = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 58 | | " [INFO] [stdout] 59 | | WITH occupied_seats_query AS ( [INFO] [stdout] 60 | | SELECT COALESCE(array_agg(seat_no), '{}'::VARCHAR[]) AS occupied_seats [INFO] [stdout] ... | [INFO] [stdout] 69 | | flight_id, aircraft_code, fare_condition [INFO] [stdout] 70 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / sqlx::query!( [INFO] [stdout] 76 | | " [INFO] [stdout] 77 | | INSERT INTO boarding_passes (ticket_no, flight_id, boarding_no, seat_no) [INFO] [stdout] 78 | | VALUES ($1, $2, $3, $4); [INFO] [stdout] 79 | | ", [INFO] [stdout] 80 | | ticket_no, flight_id, boarding_number as i32, place [INFO] [stdout] 81 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 36 | | Airport, [INFO] [stdout] 37 | | " [INFO] [stdout] 38 | | SELECT airport_code as code, airport_name as name [INFO] [stdout] ... | [INFO] [stdout] 42 | | " [INFO] [stdout] 43 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | match sqlx::query!("SELECT DISTINCT city FROM airports") [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 35 | | Airport, [INFO] [stdout] 36 | | "SELECT airport_name as name, airport_code as code FROM airports" [INFO] [stdout] 37 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / sqlx::query_as!( [INFO] [stdout] 52 | | Airport, [INFO] [stdout] 53 | | "SELECT airport_name as name, airport_code as code FROM airports WHERE city=$1", [INFO] [stdout] 54 | | city [INFO] [stdout] 55 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:84:11 [INFO] [stdout] | [INFO] [stdout] 84 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 85 | | InboundRoute, [INFO] [stdout] 86 | | " [INFO] [stdout] 87 | | SELECT DISTINCT [INFO] [stdout] ... | [INFO] [stdout] 96 | | path.as_str() [INFO] [stdout] 97 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 111 | | OutboundRoute, [INFO] [stdout] 112 | | " [INFO] [stdout] 113 | | SELECT DISTINCT [INFO] [stdout] ... | [INFO] [stdout] 122 | | path.as_str() [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] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/find_flights.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, NaiveDate, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/find_flights.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/prices.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | sqlx::query!("DROP TABLE IF EXISTS prices").execute(pool).await.unwrap(); [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/prices.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / sqlx::query!( [INFO] [stdout] 10 | | " [INFO] [stdout] 11 | | CREATE TABLE prices [INFO] [stdout] ... | [INFO] [stdout] 19 | | " [INFO] [stdout] 20 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/prices.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / sqlx::query!( [INFO] [stdout] 26 | | " [INFO] [stdout] 27 | | INSERT INTO prices (flight_no, fare_conditions, amount) [INFO] [stdout] 28 | | SELECT DISTINCT flight_no, fare_conditions, min(DISTINCT amount) AS price [INFO] [stdout] ... | [INFO] [stdout] 33 | | " [INFO] [stdout] 34 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/prices.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / sqlx::query!( [INFO] [stdout] 40 | | " [INFO] [stdout] 41 | | INSERT INTO prices (flight_no, fare_conditions, amount) [INFO] [stdout] 42 | | SELECT DISTINCT flight_no, 'Comfort' as fare_conditions, max(DISTINCT amount) AS comfort_price [INFO] [stdout] ... | [INFO] [stdout] 47 | | " [INFO] [stdout] 48 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/seats.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | sqlx::query!("DROP TABLE IF EXISTS seats_comfort").execute(pool).await.unwrap(); [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/seats.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / sqlx::query!( [INFO] [stdout] 10 | | " [INFO] [stdout] 11 | | CREATE TABLE seats_comfort [INFO] [stdout] ... | [INFO] [stdout] 19 | | " [INFO] [stdout] 20 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/seats.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / sqlx::query!( [INFO] [stdout] 26 | | " [INFO] [stdout] 27 | | INSERT INTO seats_comfort [INFO] [stdout] 28 | | SELECT * FROM seats; [INFO] [stdout] 29 | | " [INFO] [stdout] 30 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/seats.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / sqlx::query!( [INFO] [stdout] 36 | | " [INFO] [stdout] 37 | | UPDATE seats_comfort [INFO] [stdout] 38 | | SET fare_conditions = 'Comfort' [INFO] [stdout] ... | [INFO] [stdout] 51 | | " [INFO] [stdout] 52 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/find_flights.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / sqlx::query_as!( [INFO] [stdout] 27 | | FlightRecord, [INFO] [stdout] 28 | | " [INFO] [stdout] 29 | | WITH RECURSIVE flights_recur AS ( [INFO] [stdout] ... | [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_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/booking.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | let prices: HashMap = sqlx::query!( [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 22 | | " [INFO] [stdout] 23 | | SELECT flights_v.flight_id, prices.amount [INFO] [stdout] 24 | | FROM flights_v [INFO] [stdout] ... | [INFO] [stdout] 30 | | String::from(parameters.fare_conditions) [INFO] [stdout] 31 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/booking.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / sqlx::query!( [INFO] [stdout] 49 | | " [INFO] [stdout] 50 | | INSERT INTO bookings (book_ref, book_date, total_amount) [INFO] [stdout] 51 | | VALUES ($1, bookings.now(), $2); [INFO] [stdout] 52 | | ", [INFO] [stdout] 53 | | book_ref, Decimal::from(total_price) [INFO] [stdout] 54 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/booking.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / sqlx::query!( [INFO] [stdout] 59 | | " [INFO] [stdout] 60 | | INSERT INTO tickets (ticket_no, book_ref, passenger_id, passenger_name) [INFO] [stdout] 61 | | VALUES ($1, $2, $3, $4); [INFO] [stdout] 62 | | ", [INFO] [stdout] 63 | | ticket_no, book_ref, parameters.passenger_id, parameters.passenger_name [INFO] [stdout] 64 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/booking.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | / sqlx::query!( [INFO] [stdout] 72 | | " [INFO] [stdout] 73 | | INSERT INTO ticket_flights (ticket_no, flight_id, fare_conditions, amount) [INFO] [stdout] 74 | | VALUES ($1, $2, $3, $4); [INFO] [stdout] 75 | | ", [INFO] [stdout] 76 | | ticket_no, flight_id, String::from(parameters.fare_conditions), price [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | let boarded_count = sqlx::query!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 18 | | " [INFO] [stdout] 19 | | SELECT COUNT(ticket_no) FROM boarding_passes [INFO] [stdout] 20 | | WHERE flight_id = $1 [INFO] [stdout] 21 | | ", [INFO] [stdout] 22 | | flight_id [INFO] [stdout] 23 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | let fare_condition = match sqlx::query!( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 32 | | " [INFO] [stdout] 33 | | SELECT fare_conditions FROM ticket_flights [INFO] [stdout] 34 | | WHERE ticket_no = $1 AND flight_id = $2; [INFO] [stdout] 35 | | ", [INFO] [stdout] 36 | | ticket_no, flight_id [INFO] [stdout] 37 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | let aircraft_code = sqlx::query!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 46 | | " [INFO] [stdout] 47 | | SELECT aircraft_code FROM flights_v [INFO] [stdout] 48 | | WHERE flight_id = $1 [INFO] [stdout] 49 | | ", [INFO] [stdout] 50 | | flight_id [INFO] [stdout] 51 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let place = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 58 | | " [INFO] [stdout] 59 | | WITH occupied_seats_query AS ( [INFO] [stdout] 60 | | SELECT COALESCE(array_agg(seat_no), '{}'::VARCHAR[]) AS occupied_seats [INFO] [stdout] ... | [INFO] [stdout] 69 | | flight_id, aircraft_code, fare_condition [INFO] [stdout] 70 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/check_in.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / sqlx::query!( [INFO] [stdout] 76 | | " [INFO] [stdout] 77 | | INSERT INTO boarding_passes (ticket_no, flight_id, boarding_no, seat_no) [INFO] [stdout] 78 | | VALUES ($1, $2, $3, $4); [INFO] [stdout] 79 | | ", [INFO] [stdout] 80 | | ticket_no, flight_id, boarding_number as i32, place [INFO] [stdout] 81 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 36 | | Airport, [INFO] [stdout] 37 | | " [INFO] [stdout] 38 | | SELECT airport_code as code, airport_name as name [INFO] [stdout] ... | [INFO] [stdout] 42 | | " [INFO] [stdout] 43 | | ) [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 import: `std::collections::HashMap` [INFO] [stdout] --> src/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/find_flights.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, NaiveDate, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/find_flights.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dp-flights-backend` (bin "dp-flights-backend") due to 24 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `dp-flights-backend` (bin "dp-flights-backend" test) due to 24 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8b4624d712f5904214b4aab774fdca5f183301b38420f346d450cfba9dec88de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b4624d712f5904214b4aab774fdca5f183301b38420f346d450cfba9dec88de", kill_on_drop: false }` [INFO] [stdout] 8b4624d712f5904214b4aab774fdca5f183301b38420f346d450cfba9dec88de