Package org.tribuo.data.sql
Class SQLToCSV
java.lang.Object
org.tribuo.data.sql.SQLToCSV
Read an SQL query in on the standard input, write a CSV file containing the
results to the standard output.
N.B. This class accepts raw SQL strings and executes them directly via JDBC. It DOES NOT perform any SQL escaping or other injection prevention. It is the user's responsibility to ensure that SQL passed to this class performs as desired.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SQLToCSV
public SQLToCSV()
-
-
Method Details
-
main
Reads an SQL query from the standard input and writes the results of the query to the standard output.- Parameters:
args
- Single arg is the JDBC connection string.
-