pganalyze / pg_query.rs

Rust library to parse, deparse and normalize SQL queries using the PostgreSQL query parser
MIT License
139 stars 13 forks source link

Make `crate::parse_result::ParseResult` public #43

Closed levkk closed 3 months ago

levkk commented 6 months ago

parse_result::ParseResult is returned from crate::query::parse which is a public method but the result struct is private. This compiles and runs fine typically, but it's impossible to pass the output of parse to other functions since we can't import the private struct and declare it as an input variable.