All Projects → lchaboud-restlet → antlr-sqlparser

lchaboud-restlet / antlr-sqlparser

Licence: other
SQL Parser with ANTLR v4

Programming Languages

java
68154 projects - #9 most used programming language
ANTLR
299 projects

ANTLR-SQLPARSER

Main

Run : java com.restlet.sqlimport.Main "[input file]" "[output file]" , with :

  • [input file] : file path to the SQL input file
  • [output file] : file path to the output file

Tests

Run tests : "SqlImportTest.java"

SQL scripts for databases tests :

  • mysql.sql
  • oracle1.sql
  • oracle2.sql
  • postgres.sql
  • standard.sql

Source code

  • grammar : src/main/antlr4/com/restlet/sqlimport/parser/Sql.g4
  • Main class : com.restlet.sqlimport.Main
  • Tests :
    • Java test : src/test/java/SqlImportTest.java
    • SQL file : src/test/resources/import1.sql
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].