[INFO] cloning repository https://github.com/AryanPadmanabhan/db
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AryanPadmanabhan/db" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAryanPadmanabhan%2Fdb", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAryanPadmanabhan%2Fdb'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 38ca4dd9bf4fab272bbb5dce711ab8d7c83dd952
[INFO] testing AryanPadmanabhan/db against master#0d162b25edd5bf0dba9a22e83b614f1113e90474 for pr-150681
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAryanPadmanabhan%2Fdb" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AryanPadmanabhan/db
[INFO] finished tweaking git repo https://github.com/AryanPadmanabhan/db
[INFO] tweaked toml for git repo https://github.com/AryanPadmanabhan/db written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AryanPadmanabhan/db on toolchain 0d162b25edd5bf0dba9a22e83b614f1113e90474
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AryanPadmanabhan/db 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" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rstest v0.21.0
[INFO] [stderr]   Downloaded wit-bindgen v0.45.0
[INFO] [stderr]   Downloaded rstest_macros v0.21.0
[INFO] [stderr]   Downloaded assert_cmd v2.0.17
[INFO] [stderr]   Downloaded sqlparser v0.43.1
[INFO] [stderr]   Downloaded wasi v0.14.3+wasi-0.2.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1c4944c1ac4d380067c684206a06a8ba314df34f689a38f6f64f0ee0afb3dcd5
[INFO] running `Command { std: "docker" "start" "-a" "1c4944c1ac4d380067c684206a06a8ba314df34f689a38f6f64f0ee0afb3dcd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1c4944c1ac4d380067c684206a06a8ba314df34f689a38f6f64f0ee0afb3dcd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1c4944c1ac4d380067c684206a06a8ba314df34f689a38f6f64f0ee0afb3dcd5", kill_on_drop: false }`
[INFO] [stdout] 1c4944c1ac4d380067c684206a06a8ba314df34f689a38f6f64f0ee0afb3dcd5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 009d07631d5747ab12802d31159101698ac8d6cb242bf8ebd90ec5423029e3d4
[INFO] running `Command { std: "docker" "start" "-a" "009d07631d5747ab12802d31159101698ac8d6cb242bf8ebd90ec5423029e3d4", kill_on_drop: false }`
[INFO] [stderr]    Compiling semver v1.0.26
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling proc-macro2 v1.0.101
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling rustix v1.0.8
[INFO] [stderr]    Compiling toml_datetime v0.6.11
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling bitflags v2.9.4
[INFO] [stderr]    Compiling wait-timeout v0.2.1
[INFO] [stderr]    Compiling predicates-core v1.0.9
[INFO] [stderr]    Compiling doc-comment v0.3.3
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling anstream v0.6.20
[INFO] [stderr]    Compiling sdd v3.0.10
[INFO] [stderr]    Compiling difflib v0.4.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling relative-path v1.9.3
[INFO] [stderr]    Compiling termtree v0.5.1
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling serde_json v1.0.143
[INFO] [stderr]    Compiling assert_cmd v2.0.17
[INFO] [stderr]    Compiling glob v0.3.3
[INFO] [stderr]    Compiling normalize-line-endings v0.3.0
[INFO] [stderr]    Compiling clap_builder v4.5.47
[INFO] [stderr]    Compiling rustc_version v0.4.1
[INFO] [stderr]    Compiling predicates-tree v1.0.12
[INFO] [stderr]    Compiling scc v2.4.0
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling rand_xorshift v0.4.0
[INFO] [stderr]    Compiling bstr v1.12.0
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]    Compiling indexmap v2.11.0
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling futures-timer v3.0.3
[INFO] [stderr]    Compiling lru v0.12.5
[INFO] [stderr]    Compiling sqlparser v0.43.1
[INFO] [stderr]    Compiling rstest_macros v0.21.0
[INFO] [stderr]    Compiling float-cmp v0.10.0
[INFO] [stderr]    Compiling predicates v3.1.3
[INFO] [stderr]    Compiling dashmap v5.5.3
[INFO] [stderr]    Compiling toml_edit v0.22.27
[INFO] [stderr]    Compiling tempfile v3.21.0
[INFO] [stderr]    Compiling rusty-fork v0.3.0
[INFO] [stderr]    Compiling proptest v1.7.0
[INFO] [stderr]    Compiling proc-macro-crate v3.3.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling serial_test_derive v3.2.0
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling clap_derive v4.5.47
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling tokio v1.47.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling tracing-subscriber v0.3.20
[INFO] [stderr]    Compiling clap v4.5.47
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling serial_test v3.2.0
[INFO] [stderr]    Compiling rstest v0.21.0
[INFO] [stderr]    Compiling uuid v1.18.1
[INFO] [stderr]    Compiling bincode v1.3.3
[INFO] [stderr]    Compiling rust_pg_db v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.98s
[INFO] running `Command { std: "docker" "inspect" "009d07631d5747ab12802d31159101698ac8d6cb242bf8ebd90ec5423029e3d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "009d07631d5747ab12802d31159101698ac8d6cb242bf8ebd90ec5423029e3d4", kill_on_drop: false }`
[INFO] [stdout] 009d07631d5747ab12802d31159101698ac8d6cb242bf8ebd90ec5423029e3d4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c74e1bc459b8320e10f858635d7bf92b888f26ff858f2848ae054fa3a10b68d2
[INFO] running `Command { std: "docker" "start" "-a" "c74e1bc459b8320e10f858635d7bf92b888f26ff858f2848ae054fa3a10b68d2", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust_pg_db v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.68s
[INFO] running `Command { std: "docker" "inspect" "c74e1bc459b8320e10f858635d7bf92b888f26ff858f2848ae054fa3a10b68d2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c74e1bc459b8320e10f858635d7bf92b888f26ff858f2848ae054fa3a10b68d2", kill_on_drop: false }`
[INFO] [stdout] c74e1bc459b8320e10f858635d7bf92b888f26ff858f2848ae054fa3a10b68d2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 6c587cc3302fdaaa43d03aa2f63a5e7edc053134a74843b1769ec2ad8b71c799
[INFO] running `Command { std: "docker" "start" "-a" "6c587cc3302fdaaa43d03aa2f63a5e7edc053134a74843b1769ec2ad8b71c799", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_pg_db-ee438de289752206)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_pg_db-694614ae82225e0f)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests rust_pg_db
[INFO] [stdout] 
[INFO] [stdout] running 28 tests
[INFO] [stdout] test src/engine/catalog.rs - engine::catalog::Catalog::create_table (line 186) ... FAILED
[INFO] [stdout] test src/engine/buffer.rs - engine::buffer::BufferPool::flush_all_for (line 327) ... FAILED
[INFO] [stdout] test src/engine/catalog.rs - engine::catalog::Catalog::load_or_create (line 143) ... FAILED
[INFO] [stdout] test src/engine/catalog.rs - engine::catalog::Catalog::update_last_applied_lsn (line 223) ... FAILED
[INFO] [stdout] test src/engine/mod.rs - engine::Engine::insert_rows (line 308) ... FAILED
[INFO] [stdout] test src/engine/catalog.rs - engine::catalog::Column (line 31) ... FAILED
[INFO] [stdout] test src/engine/executor.rs - engine::executor::execute_select_scan (line 47) ... FAILED
[INFO] [stdout] test src/engine/buffer.rs - engine::buffer::BufferPool::get_or_load (line 201) ... FAILED
[INFO] [stdout] test src/engine/buffer.rs - engine::buffer::BufferPool::new (line 146) ... FAILED
[INFO] [stdout] test src/engine/mod.rs - engine::Engine::select (line 363) ... FAILED
[INFO] [stdout] test src/engine/storage.rs - engine::storage::Wal::open (line 450) ... FAILED
[INFO] [stdout] test src/engine/mod.rs - engine::Engine::create_table (line 253) ... FAILED
[INFO] [stdout] test src/engine/mod.rs - engine::Engine::open (line 123) ... FAILED
[INFO] [stdout] test src/engine/storage.rs - engine::storage::Wal::read_all (line 618) ... FAILED
[INFO] [stdout] test src/engine/catalog.rs - engine::catalog::TableSchema (line 62) ... FAILED
[INFO] [stdout] test src/engine/buffer.rs - engine::buffer::BufferKey (line 25) ... FAILED
[INFO] [stdout] test src/engine/storage.rs - engine::storage::Wal::append (line 546) ... FAILED
[INFO] [stdout] test src/engine/storage.rs - engine::storage::Wal::read_from_lsn (line 653) ... FAILED
[INFO] [stdout] test src/engine/storage.rs - engine::storage::Wal::read_from_lsn (line 633) ... FAILED
[INFO] [stdout] test src/sql/mod.rs - sql::parse_where (line 206) ... FAILED
[INFO] [stdout] test src/engine/executor.rs - engine::executor::matches_pred (line 115) ... FAILED
[INFO] [stdout] test src/sql/mod.rs - sql::convert_expr (line 260) ... FAILED
[INFO] [stdout] test src/engine/buffer.rs - engine::buffer::BufferPage (line 71) ... FAILED
[INFO] [stdout] test src/engine/mod.rs - engine::Engine::delete (line 396) ... FAILED
[INFO] [stdout] test src/engine/storage.rs - engine::storage::Wal::create_record (line 497) ... FAILED
[INFO] [stdout] test src/engine/storage.rs - engine::storage::WalRecord::lsn (line 330) ... FAILED
[INFO] [stdout] test src/sql/mod.rs - sql::plan_and_exec (line 35) ... FAILED
[INFO] [stdout] test src/engine/storage.rs - engine::storage::WalRecordType (line 351) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/engine/catalog.rs - engine::catalog::Catalog::create_table (line 186) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `catalog` in this scope
[INFO] [stdout]    --> src/engine/catalog.rs:187:1
[INFO] [stdout]     |
[INFO] [stdout] 187 | catalog.create_table("users", vec![
[INFO] [stdout]     | ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Column` in this scope
[INFO] [stdout]    --> src/engine/catalog.rs:188:5
[INFO] [stdout]     |
[INFO] [stdout] 188 |     Column { name: "id".to_string(), col_type: ColumnType::Int },
[INFO] [stdout]     |     ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 186 + use rust_pg_db::engine::Column;
[INFO] [stdout]     |
[INFO] [stdout] 186 + use sqlparser::ast::CommentObject::Column;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColumnType`
[INFO] [stdout]    --> src/engine/catalog.rs:188:48
[INFO] [stdout]     |
[INFO] [stdout] 188 |     Column { name: "id".to_string(), col_type: ColumnType::Int },
[INFO] [stdout]     |                                                ^^^^^^^^^^ use of undeclared type `ColumnType`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 186 + use rust_pg_db::engine::ColumnType;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Column` in this scope
[INFO] [stdout]    --> src/engine/catalog.rs:189:5
[INFO] [stdout]     |
[INFO] [stdout] 189 |     Column { name: "name".to_string(), col_type: ColumnType::Text },
[INFO] [stdout]     |     ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 186 + use rust_pg_db::engine::Column;
[INFO] [stdout]     |
[INFO] [stdout] 186 + use sqlparser::ast::CommentObject::Column;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColumnType`
[INFO] [stdout]    --> src/engine/catalog.rs:189:50
[INFO] [stdout]     |
[INFO] [stdout] 189 |     Column { name: "name".to_string(), col_type: ColumnType::Text },
[INFO] [stdout]     |                                                  ^^^^^^^^^^ use of undeclared type `ColumnType`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 186 + use rust_pg_db::engine::ColumnType;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/buffer.rs - engine::buffer::BufferPool::flush_all_for (line 327) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `buffer_pool` in this scope
[INFO] [stdout]    --> src/engine/buffer.rs:329:1
[INFO] [stdout]     |
[INFO] [stdout] 329 | buffer_pool.flush_all_for(&users_table_storage).await?;
[INFO] [stdout]     | ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `users_table_storage` in this scope
[INFO] [stdout]    --> src/engine/buffer.rs:329:28
[INFO] [stdout]     |
[INFO] [stdout] 329 | buffer_pool.flush_all_for(&users_table_storage).await?;
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/buffer.rs:329:49
[INFO] [stdout]     |
[INFO] [stdout] 327 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_buffer_rs_327_0() {
[INFO] [stdout]     |                                      --------------------------------------------- this is not `async`
[INFO] [stdout] 328 | // Ensure all recent changes to "users" table are on disk
[INFO] [stdout] 329 | buffer_pool.flush_all_for(&users_table_storage).await?;
[INFO] [stdout]     |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/catalog.rs - engine::catalog::Catalog::load_or_create (line 143) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Catalog`
[INFO] [stdout]    --> src/engine/catalog.rs:144:15
[INFO] [stdout]     |
[INFO] [stdout] 144 | let catalog = Catalog::load_or_create(PathBuf::from("./data/catalog.json"))?;
[INFO] [stdout]     |               ^^^^^^^ use of undeclared type `Catalog`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 143 + use rust_pg_db::engine::Catalog;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf`
[INFO] [stdout]    --> src/engine/catalog.rs:144:39
[INFO] [stdout]     |
[INFO] [stdout] 144 | let catalog = Catalog::load_or_create(PathBuf::from("./data/catalog.json"))?;
[INFO] [stdout]     |                                       ^^^^^^^ use of undeclared type `PathBuf`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 143 + use std::path::PathBuf;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/catalog.rs - engine::catalog::Catalog::update_last_applied_lsn (line 223) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `catalog` in this scope
[INFO] [stdout]    --> src/engine/catalog.rs:225:1
[INFO] [stdout]     |
[INFO] [stdout] 225 | catalog.update_last_applied_lsn(42)?;
[INFO] [stdout]     | ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/mod.rs - engine::Engine::insert_rows (line 308) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap`
[INFO] [stdout]    --> src/engine/mod.rs:310:5
[INFO] [stdout]     |
[INFO] [stdout] 310 |     HashMap::from([("id", Value::Int(1)), ("name", Value::Text("Alice"))]),
[INFO] [stdout]     |     ^^^^^^^ use of undeclared type `HashMap`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 308 + use std::collections::HashMap;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/mod.rs:310:27
[INFO] [stdout]     |
[INFO] [stdout] 310 |     HashMap::from([("id", Value::Int(1)), ("name", Value::Text("Alice"))]),
[INFO] [stdout]     |                           ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 308 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/mod.rs:310:52
[INFO] [stdout]     |
[INFO] [stdout] 310 |     HashMap::from([("id", Value::Int(1)), ("name", Value::Text("Alice"))]),
[INFO] [stdout]     |                                                    ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 308 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap`
[INFO] [stdout]    --> src/engine/mod.rs:311:5
[INFO] [stdout]     |
[INFO] [stdout] 311 |     HashMap::from([("id", Value::Int(2)), ("name", Value::Text("Bob"))]),
[INFO] [stdout]     |     ^^^^^^^ use of undeclared type `HashMap`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 308 + use std::collections::HashMap;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/mod.rs:311:27
[INFO] [stdout]     |
[INFO] [stdout] 311 |     HashMap::from([("id", Value::Int(2)), ("name", Value::Text("Bob"))]),
[INFO] [stdout]     |                           ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 308 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/mod.rs:311:52
[INFO] [stdout]     |
[INFO] [stdout] 311 |     HashMap::from([("id", Value::Int(2)), ("name", Value::Text("Bob"))]),
[INFO] [stdout]     |                                                    ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 308 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 308 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `engine` in this scope
[INFO] [stdout]    --> src/engine/mod.rs:313:13
[INFO] [stdout]     |
[INFO] [stdout] 313 | let count = engine.insert_rows("users", rows).await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/mod.rs:313:47
[INFO] [stdout]     |
[INFO] [stdout] 308 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_mod_rs_308_0() {
[INFO] [stdout]     |                                      ------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 313 | let count = engine.insert_rows("users", rows).await?;
[INFO] [stdout]     |                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/catalog.rs - engine::catalog::Column (line 31) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Column` in this scope
[INFO] [stdout]   --> src/engine/catalog.rs:32:17
[INFO] [stdout]    |
[INFO] [stdout] 32 | let id_column = Column {
[INFO] [stdout]    |                 ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 31 + use rust_pg_db::engine::Column;
[INFO] [stdout]    |
[INFO] [stdout] 31 + use sqlparser::ast::CommentObject::Column;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColumnType`
[INFO] [stdout]   --> src/engine/catalog.rs:34:15
[INFO] [stdout]    |
[INFO] [stdout] 34 |     col_type: ColumnType::Int,
[INFO] [stdout]    |               ^^^^^^^^^^ use of undeclared type `ColumnType`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 31 + use rust_pg_db::engine::ColumnType;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Column` in this scope
[INFO] [stdout]   --> src/engine/catalog.rs:36:19
[INFO] [stdout]    |
[INFO] [stdout] 36 | let name_column = Column {
[INFO] [stdout]    |                   ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 31 + use rust_pg_db::engine::Column;
[INFO] [stdout]    |
[INFO] [stdout] 31 + use sqlparser::ast::CommentObject::Column;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColumnType`
[INFO] [stdout]   --> src/engine/catalog.rs:38:15
[INFO] [stdout]    |
[INFO] [stdout] 38 |     col_type: ColumnType::Text,
[INFO] [stdout]    |               ^^^^^^^^^^ use of undeclared type `ColumnType`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 31 + use rust_pg_db::engine::ColumnType;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/executor.rs - engine::executor::execute_select_scan (line 47) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Predicate`
[INFO] [stdout]   --> src/engine/executor.rs:49:17
[INFO] [stdout]    |
[INFO] [stdout] 49 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]    |                 ^^^^^^^^^ use of undeclared type `Predicate`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 47 + use predicates::Predicate;
[INFO] [stdout]    |
[INFO] [stdout] 47 + use rust_pg_db::engine::Predicate;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RowValue`
[INFO] [stdout]   --> src/engine/executor.rs:49:49
[INFO] [stdout]    |
[INFO] [stdout] 49 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]    |                                                 ^^^^^^^^ use of undeclared type `RowValue`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 47 + use rust_pg_db::engine::RowValue;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> src/engine/executor.rs:49:66
[INFO] [stdout]    |
[INFO] [stdout] 49 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]    |                                                                  ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 47 + use rust_pg_db::engine::Value;
[INFO] [stdout]    |
[INFO] [stdout] 47 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 47 + use sqlparser::ast::Value;
[INFO] [stdout]    |
[INFO] [stdout] 47 + use tracing::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `execute_select_scan` in this scope
[INFO] [stdout]   --> src/engine/executor.rs:51:15
[INFO] [stdout]    |
[INFO] [stdout] 51 | let results = execute_select_scan(table, buffers, pred, cols).await?;
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 47 + use rust_pg_db::engine::execute_select_scan;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `table` in this scope
[INFO] [stdout]   --> src/engine/executor.rs:51:35
[INFO] [stdout]    |
[INFO] [stdout] 51 | let results = execute_select_scan(table, buffers, pred, cols).await?;
[INFO] [stdout]    |                                   ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buffers` in this scope
[INFO] [stdout]   --> src/engine/executor.rs:51:42
[INFO] [stdout]    |
[INFO] [stdout] 51 | let results = execute_select_scan(table, buffers, pred, cols).await?;
[INFO] [stdout]    |                                          ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/engine/executor.rs:51:63
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_executor_rs_47_0() {
[INFO] [stdout]    |                                      ---------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 51 | let results = execute_select_scan(table, buffers, pred, cols).await?;
[INFO] [stdout]    |                                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/buffer.rs - engine::buffer::BufferPool::get_or_load (line 201) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `buffer_pool` in this scope
[INFO] [stdout]    --> src/engine/buffer.rs:202:19
[INFO] [stdout]     |
[INFO] [stdout] 202 | let (key, page) = buffer_pool.get_or_load(&table_storage, PageId(0)).await?;
[INFO] [stdout]     |                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `table_storage` in this scope
[INFO] [stdout]    --> src/engine/buffer.rs:202:44
[INFO] [stdout]     |
[INFO] [stdout] 202 | let (key, page) = buffer_pool.get_or_load(&table_storage, PageId(0)).await?;
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PageId` in this scope
[INFO] [stdout]    --> src/engine/buffer.rs:202:59
[INFO] [stdout]     |
[INFO] [stdout] 202 | let (key, page) = buffer_pool.get_or_load(&table_storage, PageId(0)).await?;
[INFO] [stdout]     |                                                           ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this tuple struct
[INFO] [stdout]     |
[INFO] [stdout] 201 + use rust_pg_db::engine::PageId;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/buffer.rs:202:70
[INFO] [stdout]     |
[INFO] [stdout] 201 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_buffer_rs_201_0() {
[INFO] [stdout]     |                                      --------------------------------------------- this is not `async`
[INFO] [stdout] 202 | let (key, page) = buffer_pool.get_or_load(&table_storage, PageId(0)).await?;
[INFO] [stdout]     |                                                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/buffer.rs - engine::buffer::BufferPool::new (line 146) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufferPool`
[INFO] [stdout]    --> src/engine/buffer.rs:147:19
[INFO] [stdout]     |
[INFO] [stdout] 147 | let buffer_pool = BufferPool::new(64);
[INFO] [stdout]     |                   ^^^^^^^^^^ use of undeclared type `BufferPool`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 146 + use rust_pg_db::engine::BufferPool;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/mod.rs - engine::Engine::select (line 363) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Predicate`
[INFO] [stdout]    --> src/engine/mod.rs:365:17
[INFO] [stdout]     |
[INFO] [stdout] 365 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]     |                 ^^^^^^^^^ use of undeclared type `Predicate`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 363 + use predicates::Predicate;
[INFO] [stdout]     |
[INFO] [stdout] 363 + use rust_pg_db::engine::Predicate;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RowValue`
[INFO] [stdout]    --> src/engine/mod.rs:365:49
[INFO] [stdout]     |
[INFO] [stdout] 365 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `RowValue`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 363 + use rust_pg_db::engine::RowValue;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/mod.rs:365:66
[INFO] [stdout]     |
[INFO] [stdout] 365 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]     |                                                                  ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 363 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 363 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 363 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 363 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `engine` in this scope
[INFO] [stdout]    --> src/engine/mod.rs:366:12
[INFO] [stdout]     |
[INFO] [stdout] 366 | let rows = engine.select("users", pred, None).await?;
[INFO] [stdout]     |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `engine` in this scope
[INFO] [stdout]    --> src/engine/mod.rs:369:12
[INFO] [stdout]     |
[INFO] [stdout] 369 | let rows = engine.select("users", None, Some(vec!["name".to_string()])).await?;
[INFO] [stdout]     |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/mod.rs:366:47
[INFO] [stdout]     |
[INFO] [stdout] 363 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_mod_rs_363_0() {
[INFO] [stdout]     |                                      ------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 366 | let rows = engine.select("users", pred, None).await?;
[INFO] [stdout]     |                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/mod.rs:369:73
[INFO] [stdout]     |
[INFO] [stdout] 363 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_mod_rs_363_0() {
[INFO] [stdout]     |                                      ------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 369 | let rows = engine.select("users", None, Some(vec!["name".to_string()])).await?;
[INFO] [stdout]     |                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/storage.rs - engine::storage::Wal::open (line 450) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Wal`
[INFO] [stdout]    --> src/engine/storage.rs:451:11
[INFO] [stdout]     |
[INFO] [stdout] 451 | let wal = Wal::open(PathBuf::from("./wal/log.jsonl"))?;
[INFO] [stdout]     |           ^^^ use of undeclared type `Wal`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 450 + use rust_pg_db::engine::Wal;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf`
[INFO] [stdout]    --> src/engine/storage.rs:451:21
[INFO] [stdout]     |
[INFO] [stdout] 451 | let wal = Wal::open(PathBuf::from("./wal/log.jsonl"))?;
[INFO] [stdout]     |                     ^^^^^^^ use of undeclared type `PathBuf`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 450 + use std::path::PathBuf;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/mod.rs - engine::Engine::create_table (line 253) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `engine` in this scope
[INFO] [stdout]    --> src/engine/mod.rs:254:1
[INFO] [stdout]     |
[INFO] [stdout] 254 | engine.create_table("users", vec![
[INFO] [stdout]     | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/mod.rs:255:24
[INFO] [stdout]     |
[INFO] [stdout] 255 |     ("id".to_string(), Value::Int(0)),      // INT column
[INFO] [stdout]     |                        ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 253 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 253 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 253 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 253 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/mod.rs:256:26
[INFO] [stdout]     |
[INFO] [stdout] 256 |     ("name".to_string(), Value::Text("".to_string()))  // TEXT column  
[INFO] [stdout]     |                          ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 253 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 253 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 253 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 253 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/mod.rs:257:4
[INFO] [stdout]     |
[INFO] [stdout] 253 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_mod_rs_253_0() {
[INFO] [stdout]     |                                      ------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 257 | ]).await?;
[INFO] [stdout]     |    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/mod.rs - engine::Engine::open (line 123) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Engine`
[INFO] [stdout]    --> src/engine/mod.rs:124:14
[INFO] [stdout]     |
[INFO] [stdout] 124 | let engine = Engine::open("./my_database").await?;
[INFO] [stdout]     |              ^^^^^^ use of undeclared type `Engine`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 123 + use rust_pg_db::engine::Engine;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/mod.rs:124:44
[INFO] [stdout]     |
[INFO] [stdout] 123 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_mod_rs_123_0() {
[INFO] [stdout]     |                                      ------------------------------------------ this is not `async`
[INFO] [stdout] 124 | let engine = Engine::open("./my_database").await?;
[INFO] [stdout]     |                                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/storage.rs - engine::storage::Wal::read_all (line 618) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `wal` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:619:19
[INFO] [stdout]     |
[INFO] [stdout] 619 | let all_records = wal.read_all()?;
[INFO] [stdout]     |                   ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/catalog.rs - engine::catalog::TableSchema (line 62) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TableSchema` in this scope
[INFO] [stdout]   --> src/engine/catalog.rs:63:20
[INFO] [stdout]    |
[INFO] [stdout] 63 | let users_schema = TableSchema {
[INFO] [stdout]    |                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 62 + use rust_pg_db::engine::TableSchema;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Column` in this scope
[INFO] [stdout]   --> src/engine/catalog.rs:66:9
[INFO] [stdout]    |
[INFO] [stdout] 66 |         Column { name: "id".to_string(), col_type: ColumnType::Int },
[INFO] [stdout]    |         ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 62 + use rust_pg_db::engine::Column;
[INFO] [stdout]    |
[INFO] [stdout] 62 + use sqlparser::ast::CommentObject::Column;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColumnType`
[INFO] [stdout]   --> src/engine/catalog.rs:66:52
[INFO] [stdout]    |
[INFO] [stdout] 66 |         Column { name: "id".to_string(), col_type: ColumnType::Int },
[INFO] [stdout]    |                                                    ^^^^^^^^^^ use of undeclared type `ColumnType`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 62 + use rust_pg_db::engine::ColumnType;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Column` in this scope
[INFO] [stdout]   --> src/engine/catalog.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |         Column { name: "name".to_string(), col_type: ColumnType::Text },
[INFO] [stdout]    |         ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 62 + use rust_pg_db::engine::Column;
[INFO] [stdout]    |
[INFO] [stdout] 62 + use sqlparser::ast::CommentObject::Column;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColumnType`
[INFO] [stdout]   --> src/engine/catalog.rs:67:54
[INFO] [stdout]    |
[INFO] [stdout] 67 |         Column { name: "name".to_string(), col_type: ColumnType::Text },
[INFO] [stdout]    |                                                      ^^^^^^^^^^ use of undeclared type `ColumnType`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 62 + use rust_pg_db::engine::ColumnType;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/buffer.rs - engine::buffer::BufferKey (line 25) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BufferKey` in this scope
[INFO] [stdout]   --> src/engine/buffer.rs:26:11
[INFO] [stdout]    |
[INFO] [stdout] 26 | let key = BufferKey {
[INFO] [stdout]    |           ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PageId` in this scope
[INFO] [stdout]   --> src/engine/buffer.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 |     page_id: PageId(42),
[INFO] [stdout]    |              ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this tuple struct
[INFO] [stdout]    |
[INFO] [stdout] 25 + use rust_pg_db::engine::PageId;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/storage.rs - engine::storage::Wal::append (line 546) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `wal` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:547:14
[INFO] [stdout]     |
[INFO] [stdout] 547 | let record = wal.create_record(operation_template);
[INFO] [stdout]     |              ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `operation_template` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:547:32
[INFO] [stdout]     |
[INFO] [stdout] 547 | let record = wal.create_record(operation_template);
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wal` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:548:1
[INFO] [stdout]     |
[INFO] [stdout] 548 | wal.append(record)?;
[INFO] [stdout]     | ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/storage.rs - engine::storage::Wal::read_from_lsn (line 653) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `wal` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:655:15
[INFO] [stdout]     |
[INFO] [stdout] 655 | let new_ops = wal.read_from_lsn(100)?;
[INFO] [stdout]     |               ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/storage.rs - engine::storage::Wal::read_from_lsn (line 633) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `catalog` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:634:22
[INFO] [stdout]     |
[INFO] [stdout] 634 | let checkpoint_lsn = catalog.last_applied_lsn;
[INFO] [stdout]     |                      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wal` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:635:19
[INFO] [stdout]     |
[INFO] [stdout] 635 | let uncommitted = wal.read_from_lsn(checkpoint_lsn)?;
[INFO] [stdout]     |                   ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/storage.rs:637:29
[INFO] [stdout]     |
[INFO] [stdout] 633 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_storage_rs_633_0() {
[INFO] [stdout]     |                                      ---------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 637 |     apply_operation(record).await?;
[INFO] [stdout]     |                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `apply_operation` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:637:5
[INFO] [stdout]     |
[INFO] [stdout] 637 |     apply_operation(record).await?;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/sql/mod.rs - sql::parse_where (line 206) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout]    --> src/sql/mod.rs:208:1
[INFO] [stdout]     |
[INFO] [stdout] 208 | let result = parse_where(None)?; // Returns Ok(None)
[INFO] [stdout]     | ^^^
[INFO] [stdout]     | |
[INFO] [stdout]     | `let` cannot be used for global variables
[INFO] [stdout]     | help: consider using `static` or `const` instead of `let`
[INFO] [stdout]     |
[INFO] [stdout]     = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/executor.rs - engine::executor::matches_pred (line 115) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap`
[INFO] [stdout]    --> src/engine/executor.rs:116:11
[INFO] [stdout]     |
[INFO] [stdout] 116 | let row = HashMap::from([("id".to_string(), Value::Int(42))]);
[INFO] [stdout]     |           ^^^^^^^ use of undeclared type `HashMap`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 115 + use std::collections::HashMap;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/executor.rs:116:45
[INFO] [stdout]     |
[INFO] [stdout] 116 | let row = HashMap::from([("id".to_string(), Value::Int(42))]);
[INFO] [stdout]     |                                             ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 115 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 115 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 115 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 115 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Predicate`
[INFO] [stdout]    --> src/engine/executor.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | let pred = Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(42)));
[INFO] [stdout]     |            ^^^^^^^^^ use of undeclared type `Predicate`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 115 + use predicates::Predicate;
[INFO] [stdout]     |
[INFO] [stdout] 115 + use rust_pg_db::engine::Predicate;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RowValue`
[INFO] [stdout]    --> src/engine/executor.rs:117:44
[INFO] [stdout]     |
[INFO] [stdout] 117 | let pred = Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(42)));
[INFO] [stdout]     |                                            ^^^^^^^^ use of undeclared type `RowValue`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 115 + use rust_pg_db::engine::RowValue;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/executor.rs:117:61
[INFO] [stdout]     |
[INFO] [stdout] 117 | let pred = Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(42)));
[INFO] [stdout]     |                                                             ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 115 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 115 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 115 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 115 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `matches_pred` in this scope
[INFO] [stdout]    --> src/engine/executor.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 | assert!(matches_pred(&row, Some(&pred)));
[INFO] [stdout]     |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/sql/mod.rs - sql::convert_expr (line 260) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout]    --> src/sql/mod.rs:262:1
[INFO] [stdout]     |
[INFO] [stdout] 262 | let ast = /* parsed binary AND expression */;
[INFO] [stdout]     | ^^^
[INFO] [stdout]     | |
[INFO] [stdout]     | `let` cannot be used for global variables
[INFO] [stdout]     | help: consider using `static` or `const` instead of `let`
[INFO] [stdout]     |
[INFO] [stdout]     = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/buffer.rs - engine::buffer::BufferPage (line 71) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `buffer_page` in this scope
[INFO] [stdout]   --> src/engine/buffer.rs:73:17
[INFO] [stdout]    |
[INFO] [stdout] 73 | let page_data = buffer_page.data.read();
[INFO] [stdout]    |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buffer_page` in this scope
[INFO] [stdout]   --> src/engine/buffer.rs:78:25
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut page_data = buffer_page.data.write();
[INFO] [stdout]    |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `new_row` in this scope
[INFO] [stdout]   --> src/engine/buffer.rs:79:25
[INFO] [stdout]    |
[INFO] [stdout] 79 |     page_data.rows.push(new_row);
[INFO] [stdout]    |                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buffer_page` in this scope
[INFO] [stdout]   --> src/engine/buffer.rs:80:6
[INFO] [stdout]    |
[INFO] [stdout] 80 |     *buffer_page.dirty.write() = true; // Mark as dirty
[INFO] [stdout]    |      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/mod.rs - engine::Engine::delete (line 396) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Predicate`
[INFO] [stdout]    --> src/engine/mod.rs:398:17
[INFO] [stdout]     |
[INFO] [stdout] 398 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]     |                 ^^^^^^^^^ use of undeclared type `Predicate`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 396 + use predicates::Predicate;
[INFO] [stdout]     |
[INFO] [stdout] 396 + use rust_pg_db::engine::Predicate;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RowValue`
[INFO] [stdout]    --> src/engine/mod.rs:398:49
[INFO] [stdout]     |
[INFO] [stdout] 398 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `RowValue`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 396 + use rust_pg_db::engine::RowValue;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> src/engine/mod.rs:398:66
[INFO] [stdout]     |
[INFO] [stdout] 398 | let pred = Some(Predicate::Eq("id".to_string(), RowValue::Scalar(Value::Int(1))));
[INFO] [stdout]     |                                                                  ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 396 + use rust_pg_db::engine::Value;
[INFO] [stdout]     |
[INFO] [stdout] 396 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 396 + use sqlparser::ast::Value;
[INFO] [stdout]     |
[INFO] [stdout] 396 + use tracing::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `engine` in this scope
[INFO] [stdout]    --> src/engine/mod.rs:399:15
[INFO] [stdout]     |
[INFO] [stdout] 399 | let deleted = engine.delete("users", pred).await?;
[INFO] [stdout]     |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `engine` in this scope
[INFO] [stdout]    --> src/engine/mod.rs:402:15
[INFO] [stdout]     |
[INFO] [stdout] 402 | let deleted = engine.delete("users", None).await?;
[INFO] [stdout]     |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/mod.rs:399:44
[INFO] [stdout]     |
[INFO] [stdout] 396 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_mod_rs_396_0() {
[INFO] [stdout]     |                                      ------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 399 | let deleted = engine.delete("users", pred).await?;
[INFO] [stdout]     |                                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/engine/mod.rs:402:44
[INFO] [stdout]     |
[INFO] [stdout] 396 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_mod_rs_396_0() {
[INFO] [stdout]     |                                      ------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 402 | let deleted = engine.delete("users", None).await?;
[INFO] [stdout]     |                                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/storage.rs - engine::storage::Wal::create_record (line 497) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WalRecordType`
[INFO] [stdout]    --> src/engine/storage.rs:498:16
[INFO] [stdout]     |
[INFO] [stdout] 498 | let template = WalRecordType::Insert {
[INFO] [stdout]     |                ^^^^^^^^^^^^^ use of undeclared type `WalRecordType`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 497 + use rust_pg_db::engine::WalRecordType;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `user_data` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:500:10
[INFO] [stdout]     |
[INFO] [stdout] 500 |     row: user_data,
[INFO] [stdout]     |          ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wal` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:502:14
[INFO] [stdout]     |
[INFO] [stdout] 502 | let record = wal.create_record(template); // Gets next LSN
[INFO] [stdout]     |              ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `expected_lsn` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:503:26
[INFO] [stdout]     |
[INFO] [stdout] 503 | assert_eq!(record.lsn(), expected_lsn);
[INFO] [stdout]     |                          ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/storage.rs - engine::storage::WalRecord::lsn (line 330) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WalRecord`
[INFO] [stdout]    --> src/engine/storage.rs:331:14
[INFO] [stdout]     |
[INFO] [stdout] 331 | let record = WalRecord::Insert { lsn: 42, table: "users".to_string(), row: HashMap::new() };
[INFO] [stdout]     |              ^^^^^^^^^ use of undeclared type `WalRecord`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 330 + use rust_pg_db::engine::WalRecord;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap`
[INFO] [stdout]    --> src/engine/storage.rs:331:76
[INFO] [stdout]     |
[INFO] [stdout] 331 | let record = WalRecord::Insert { lsn: 42, table: "users".to_string(), row: HashMap::new() };
[INFO] [stdout]     |                                                                            ^^^^^^^ use of undeclared type `HashMap`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 330 + use std::collections::HashMap;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/sql/mod.rs - sql::plan_and_exec (line 35) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `plan_and_exec` in this scope
[INFO] [stdout]   --> src/sql/mod.rs:36:14
[INFO] [stdout]    |
[INFO] [stdout] 36 | let result = plan_and_exec(engine, "SELECT * FROM users WHERE id = 1;").await?;
[INFO] [stdout]    |              ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 35 + use rust_pg_db::sql::plan_and_exec;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `engine` in this scope
[INFO] [stdout]   --> src/sql/mod.rs:36:28
[INFO] [stdout]    |
[INFO] [stdout] 36 | let result = plan_and_exec(engine, "SELECT * FROM users WHERE id = 1;").await?;
[INFO] [stdout]    |                            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/sql/mod.rs:36:73
[INFO] [stdout]    |
[INFO] [stdout] 35 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_sql_mod_rs_35_0() {
[INFO] [stdout]    |                                      -------------------------------------- this is not `async`
[INFO] [stdout] 36 | let result = plan_and_exec(engine, "SELECT * FROM users WHERE id = 1;").await?;
[INFO] [stdout]    |                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/engine/storage.rs - engine::storage::WalRecordType (line 351) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WalRecordType`
[INFO] [stdout]    --> src/engine/storage.rs:353:16
[INFO] [stdout]     |
[INFO] [stdout] 353 | let template = WalRecordType::Insert {
[INFO] [stdout]     |                ^^^^^^^^^^^^^ use of undeclared type `WalRecordType`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 351 + use rust_pg_db::engine::WalRecordType;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `user_data` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:355:10
[INFO] [stdout]     |
[INFO] [stdout] 355 |     row: user_data,
[INFO] [stdout]     |          ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wal` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:359:14
[INFO] [stdout]     |
[INFO] [stdout] 359 | let record = wal.create_record(template);
[INFO] [stdout]     |              ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wal` in this scope
[INFO] [stdout]    --> src/engine/storage.rs:362:1
[INFO] [stdout]     |
[INFO] [stdout] 362 | wal.append(record)?;
[INFO] [stdout]     | ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/engine/buffer.rs - engine::buffer::BufferKey (line 25)
[INFO] [stdout]     src/engine/buffer.rs - engine::buffer::BufferPage (line 71)
[INFO] [stdout]     src/engine/buffer.rs - engine::buffer::BufferPool::flush_all_for (line 327)
[INFO] [stdout]     src/engine/buffer.rs - engine::buffer::BufferPool::get_or_load (line 201)
[INFO] [stdout]     src/engine/buffer.rs - engine::buffer::BufferPool::new (line 146)
[INFO] [stdout]     src/engine/catalog.rs - engine::catalog::Catalog::create_table (line 186)
[INFO] [stdout]     src/engine/catalog.rs - engine::catalog::Catalog::load_or_create (line 143)
[INFO] [stdout]     src/engine/catalog.rs - engine::catalog::Catalog::update_last_applied_lsn (line 223)
[INFO] [stdout]     src/engine/catalog.rs - engine::catalog::Column (line 31)
[INFO] [stdout]     src/engine/catalog.rs - engine::catalog::TableSchema (line 62)
[INFO] [stdout]     src/engine/executor.rs - engine::executor::execute_select_scan (line 47)
[INFO] [stdout]     src/engine/executor.rs - engine::executor::matches_pred (line 115)
[INFO] [stdout]     src/engine/mod.rs - engine::Engine::create_table (line 253)
[INFO] [stdout]     src/engine/mod.rs - engine::Engine::delete (line 396)
[INFO] [stdout]     src/engine/mod.rs - engine::Engine::insert_rows (line 308)
[INFO] [stdout]     src/engine/mod.rs - engine::Engine::open (line 123)
[INFO] [stdout]     src/engine/mod.rs - engine::Engine::select (line 363)
[INFO] [stdout]     src/engine/storage.rs - engine::storage::Wal::append (line 546)
[INFO] [stdout]     src/engine/storage.rs - engine::storage::Wal::create_record (line 497)
[INFO] [stdout]     src/engine/storage.rs - engine::storage::Wal::open (line 450)
[INFO] [stdout]     src/engine/storage.rs - engine::storage::Wal::read_all (line 618)
[INFO] [stdout]     src/engine/storage.rs - engine::storage::Wal::read_from_lsn (line 633)
[INFO] [stdout]     src/engine/storage.rs - engine::storage::Wal::read_from_lsn (line 653)
[INFO] [stdout]     src/engine/storage.rs - engine::storage::WalRecord::lsn (line 330)
[INFO] [stdout]     src/engine/storage.rs - engine::storage::WalRecordType (line 351)
[INFO] [stdout]     src/sql/mod.rs - sql::convert_expr (line 260)
[INFO] [stdout]     src/sql/mod.rs - sql::parse_where (line 206)
[INFO] [stdout]     src/sql/mod.rs - sql::plan_and_exec (line 35)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 28 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.28s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "6c587cc3302fdaaa43d03aa2f63a5e7edc053134a74843b1769ec2ad8b71c799", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6c587cc3302fdaaa43d03aa2f63a5e7edc053134a74843b1769ec2ad8b71c799", kill_on_drop: false }`
[INFO] [stdout] 6c587cc3302fdaaa43d03aa2f63a5e7edc053134a74843b1769ec2ad8b71c799
