public class DatabaseExporter extends Object
| Constructor and Description |
|---|
DatabaseExporter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exportDatabase(Connection conn,
OdsDocument document) |
static void |
exportDatabase(DataSource dataSource,
OdsDocument document)
Create a sheet per table, and write the data.
|
static void |
main(String[] args)
Usage:
$ java -cp path/to/fastods/jar:path/to/jdbc/driver/jar
|
public static void main(String[] args) throws SQLException, IOException
SQLExceptionIOExceptionpublic static void exportDatabase(DataSource dataSource, OdsDocument document) throws SQLException, IOException
dataSource - the data sourcedocument - the documentSQLException - if there is a SQL exceptionIOException - if there is an I/O exceptionpublic static void exportDatabase(Connection conn, OdsDocument document) throws SQLException, IOException
SQLExceptionIOExceptionCopyright © 2016–2021. All rights reserved.