pgcentralfoundation / pgrx

Build Postgres Extensions with Rust!
Other
3.42k stars 223 forks source link

Abstract over `id_matches` in sql-entity-graph #1705

Closed workingjubilee closed 1 month ago

workingjubilee commented 1 month ago

There's a lot of segments of code in pgrx-sql-entity-graph that have a lot of imperative state, not because that's essential to describing them, but simply to implement a bit of relatively minor control flow. Instead of continuing to do that, let's simplify the graph code by allowing similar types to be described by a behavior they both implement. Abstractions can sometimes clarify things! Who'd have thought?