tsqlparser.nim 270 B

12345678910111213
  1. discard """
  2. output: '''true'''
  3. """
  4. # Just check that we can parse 'somesql' and render it without crashes.
  5. import parsesql, streams, os
  6. var tree = parseSql(newFileStream(parentDir(currentSourcePath) / "somesql.sql"), "somesql")
  7. discard renderSql(tree)
  8. echo "true"