SQLããã¼ã¹ãããã¨ã«è¿«ããã¦Pythonã§èªä½ãã¦ããããrubyã§æ¸ããã»ããããé½åãè¯ãã£ãã®ã§æ¸ããªãããã¼ã¨ãªã£ãã¨ããã§è¦ã¤ãããããã®ã ãã ããREADMEã«ã©ããã«ä½¿ã£ã¦ã¿ã¦ã使ããªãã£ãã®ã§ã¡ã¢ã #ã¤ã³ã¹ãã¼ã« ãã®ã¢ã¸ã¥ã¼ã«ã使ãã°ãã¼ã¹ã§ããã https://github.com/cryodex/sql-parser gemã§ã®ã¤ã³ã¹ãã¼ã«ã¯ä»¥ä¸ã®ããã«ããã irb(main):001:0> require 'sql-parser' irb(main):002:0> parser = SQLParser::Parser.new irb(main):003:0> ast = parser.scan_str('SELECT * FROM users WHERE id = 1') irb(main):004:0> ast.select_list.to_sql N
{{#tags}}- {{label}}
{{/tags}}