exportTableAsCSV

abstract fun exportTableAsCSV(tableName: String, schemaName: String? = defaultSchemaName, out: PrintWriter = outputDirectory.createPrintWriter("${tableName}.csv"), header: Boolean = true)

Writes the table as comma separated values

Parameters

schemaName

the name of the schema that should contain the tables

tableName

the name of the table to write

header

true means column names as the header included

out

the PrintWriter to write to. The print writer is not closed.