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

feat: publish a Go function corresponding to pg_query_scan #43

Closed SKalt closed 3 years ago

SKalt commented 3 years ago

Publishing Scan(input string) (*ScanResult, error) would let users access *ScanResults.

I only added smoke tests for this function since I figured the core functionality (tokenization) was covered by the test suite in libpg_query.

Would close #42.