Diesel cli print schema ignores schema-key arg
Rust Version
rustc 1.98.0 (88d9e12ae 2026-08-18)
Diesel Version
master commit 37367a079edb156138e3c1b2a097c75aeef710a6
Diesel Features
postgres
Database Version
postgres 18
Operating System Version
macos
What happened?
Given diesel.toml has multiple schemas, example:
[print_schema.event]
file = "subschemas/event/src/schema.rs"
filter = { only_tables = ["event"] }
[print_schema.event_processing]
file = "subschemas/event-processing/src/schema.rs"
filter = { only_tables = ["processed_event"] }running print-schema --schema-key event_processing will output all schema, not just the event_processing filtered one.
What did you expect to happen?
Expected to get event_processing schema, as in schema that had filter = { only_tables = ["processed_event"] } applied not all tables
Additional details
Seems similar to 3712
Steps to reproduce
Compile time error
No response
Checklist
I have already looked over the issue tracker and the discussion forum for similar possible closed issues.
This issue can be reproduced on Rust's stable channel. (Please submit the issue in the Rust issue tracker instead if that's not the case)
This issue can be reproduced without requiring a third party crate
Source: diesel-rs/diesel