pganalyze / pg_query_go

Go library to parse and normalize SQL queries using the PostgreSQL query parser
BSD 3-Clause "New" or "Revised" License
663 stars 79 forks source link

WIP: work on implementing SplitWithScanner #52

Closed SKalt closed 1 year ago

SKalt commented 3 years ago

Posting my progress. I'm having trouble dereferencing PgQuerySplitStmt **stmts; from PgQuerySplitResult as commented below. Once this branch contains a working SplitWithScanner(_) and SplitWithParser(_) , I intend to squash my WIP commit to prevent debugging code from entering the codebase. Relates to #51.

lfittl commented 1 year ago

This has been added in #97, thanks to @francoislarochelle!

Appreciate the earlier contribution here as well, and hope that PR fully resolves the use case for you as well.