Package org.tribuo.data.sql
Class SQLToCSV.SQLToCSVOptions
java.lang.Object
org.tribuo.data.sql.SQLToCSV.SQLToCSVOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
- Enclosing class:
- SQLToCSV
public static class SQLToCSV.SQLToCSVOptions
extends Object
implements com.oracle.labs.mlrg.olcut.config.Options
Command line options.
-
Field Summary
Modifier and TypeFieldDescriptionConnection string to the SQL databaseName of the DBConfig to useSQL File to run as a query, defaults to stdinFile to write query results as CSV, defaults to stdoutPassword for the SQL databaseUsername for the SQL databaseFields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Options
getOptionsDescription
-
Field Details
-
connString
@Option(charName='n', longName="connection", usage="Connection string to the SQL database") public String connStringConnection string to the SQL database -
password
@Option(charName='p', longName="password", usage="Password for the SQL database") public String passwordPassword for the SQL database -
username
@Option(charName='u', longName="username", usage="Username for the SQL database") public String usernameUsername for the SQL database -
inputPath
@Option(charName='i', longName="input-sql", usage="SQL File to run as a query, defaults to stdin") public Path inputPathSQL File to run as a query, defaults to stdin -
outputPath
@Option(charName='o', longName="output-csv", usage="File to write query results as CSV, defaults to stdout") public Path outputPathFile to write query results as CSV, defaults to stdout -
dbConfig
Name of the DBConfig to use
-
-
Constructor Details
-
SQLToCSVOptions
public SQLToCSVOptions()
-