SQLines provides a command line interface to run assessments and migrations.
You can find detailed description of the command line options at Command Line Reference
On Microsoft Windows, if you ran a setup (.msi package), go to Start → Programs → SQLines - SQLines Command Line. You can also run sqlines.exe with required options from the SQLines installation directory.
On Linux/Unix, run ./sqlines with required options
Let's assume you need to run an assessment of using embedded SQL statements and JDBC database access classes in a Java application.
Specify the following options:
-
-source to specify the location of .java files
-target to specify the directory for the assessment report and SQLines logs
-assess option to run assessment only (migration is not performed)
-report_template to specify the report appearance and what information you want to collect. You can also use the default report template.
Command line:
sqlines.exe -source_type=java -source=d:\project\ABC\*.java -target=d:\report\ABC -assess |