Class SQLToCSV

java.lang.Object
org.tribuo.data.sql.SQLToCSV

public class SQLToCSV extends Object
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.

  • Constructor Details

    • SQLToCSV

      public SQLToCSV()
  • Method Details

    • main

      public static void main(String[] args)
      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.