Anyone know of a Ruby SQL parser?

前端 未结 4 1624
我寻月下人不归
我寻月下人不归 2021-01-05 02:07

Anyone know of a Ruby SQL parser?

4条回答
  •  悲&欢浪女
    2021-01-05 03:03

    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

提交回复
热议问题