Anyone know of a Ruby SQL parser?
I post answer here for someone who will need. I found this gem 'sql-parser'
gem install sql-parser
However this gem is not up-to-date if you install with command 'gem install'. So we have to check out the code from github also to get latest version. When I try to parse an insert statement after gem install. It failed.
After updating code from github. it can parse.
Github https://github.com/cryodex/sql-parser