diff --git a/README.md b/README.md
index fcd7c27..c350ac6 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
**Move tables across databases. Schema, data and all.**
SqlJam is a desktop import/export tool for relational and OLAP databases: MySQL, MariaDB, PostgreSQL, Oracle, SQL Server, Db2, H2, SQLite, Microsoft Access, DuckDB, ClickHouse and more.
-It copies tables (with indexes, constraints, sequences and partitions) **directly into another database** or into the same schema as copies, or saves them as a **self-describing export package** of SQL, **Parquet** or **CSV** files that can be imported later. Imports into a database run in **one transaction** which an error rolls back as a whole, and rows are **inserted, updated or skipped by key**.
+It copies tables (with indexes, constraints, sequences and partitions) **directly into another database** or into the same schema as copies, or saves them as a **self-describing export package** of SQL, **Parquet**, **CSV** or **Excel** files that can be imported later. Imports into a database run in **one transaction** which an error rolls back as a whole, and rows are **inserted, updated or skipped by key**.


@@ -35,16 +35,17 @@ It copies tables (with indexes, constraints, sequences and partitions) **directl
| Long jobs are a black box | **Percentage progress**, per-table progress, error log and cancel in the UI |
| Analytics teams want Parquet, not SQL | **Parquet packages** (ZSTD, Snappy, GZIP) through an embedded DuckDB, and **Parquet files of other tools** loaded into any table |
| Spreadsheets and text tools want CSV | **CSV packages** with your delimiter, quote, NULL text, header, encoding (UTF-8 with BOM for Excel, GBK and more) and date format, read back with the exact column types kept in `manifest.json`, and **CSV files of other tools** with detected delimiter and types |
+| Business teams work in Excel | **Excel packages**: one `.xlsx` workbook for each table, numbers, dates and booleans as real cells, read back exactly with the column types kept in `manifest.json`. **Excel workbooks of other tools** need no `manifest.json`: choose a sheet, its first row names the columns and the types are detected |
| An import went wrong, now what? | **One transaction** by default: an error rolls back the whole import, or **commit every N rows** like other import tools. **Skip rows with errors** goes on and lists every skipped row in the log, which you can filter and save. **Confirm before commit** lets you review a successful import in one transaction, then **Commit** or **Roll Back** |
| Did every row arrive, and what happened when it stopped? | A **migration report** for every import and export, successful, failed, cancelled or rolled back: source, target and options, each table with its source rows, written and skipped rows, the rows counted in the target afterwards and a ✓ or ✗ against the written rows, the objects which were created, every skipped row with its error, where the transfer stopped and the error which ended it. It opens on its own page with **View Report**, and **Transfer → Import History** lists every report. Export one as Markdown, HTML or JSON |
| A copy has to stay up to date | **Sync Tasks** copy the rows which changed since the last run into another database, found by a column of the update time or an increasing key, every N minutes or every day at a time. The first run copies all rows, the watermark moves on only after the commit, errors of the connection are run again and errors of the data are not. SqlJam runs the tasks while it is open. To run them when it is closed, **Copy Command** gives the command line of a task for the scheduler of your system, SqlJam itself never changes it. Collections of vector databases sync the same way, and every run leaves a migration report |
| Some rows exist already | **Update or insert by key** updates the rows of the same primary key, or of the columns you choose, and inserts the others. **Skip existing by key** keeps them and inserts the new rows only. Insert is the default |
| Warehouses live apart from OLTP databases | **DuckDB and ClickHouse data sources**, grouped as OLAP databases next to the relational ones |
-| The rows come from a join or a report, not from one table | **SQL Query** editor with syntax highlighting: run the SQL, check the first rows, then export all rows of the query as a table into SQL, Parquet, CSV or another database |
+| The rows come from a join or a report, not from one table | **SQL Query** editor with syntax highlighting: run the SQL, check the first rows, then export all rows of the query as a table into SQL, Parquet, CSV, Excel or another database |
| Only part of a table is needed | **Data viewer query**: columns, WHERE, GROUP BY and ORDER BY, then export the rows of the query. Missing target tables are created with the selected columns |
| Target columns are named or typed differently | **Map Columns…** renames a column, gives it a type of the target or leaves it out, for tables and for the fields of vector database collections. Keys, indexes and foreign keys follow the new names. Columns which are not changed are imported as they are |
| A copy next to the original | **Copy in the same schema** with a table name such as `{table}_copy`. Keys, indexes and constraints get their own names and the source tables are protected |
-| What is inside this package? | **Package viewer**: files with size and modified time, previews of manifest, SQL, LOB, Parquet and CSV files |
+| What is inside this package? | **Package viewer**: files with size and modified time, previews of manifest, SQL, LOB, Parquet, CSV and Excel files |
| Custom and modern types | PostgreSQL enums and domains, DuckDB unions and fixed arrays, ClickHouse variants, maps and tuples |
| Embeddings move with their search | Vectors of pgvector, MySQL, MariaDB, Oracle, SQL Server, Db2, DuckDB and ClickHouse keep their dimensions, and vector indexes (HNSW, IVF) keep their distances and options |
| Embeddings live in a vector database | **Vector databases** sit in the connection tree like the other data sources: Milvus, Qdrant, Weaviate, Pinecone, Elasticsearch, OpenSearch and Chroma, read by their REST APIs. Expand one to its databases, collections, partitions, tenants or namespaces, open a collection to browse its fields and records page by page, then **Import…** writes it straight into a database with vectors: ids and vectors become columns, every top-level field becomes a column of its type and the whole payload is kept as JSON. Conditions, native filters and nearest neighbor searches choose the rows |
@@ -68,9 +69,9 @@ flowchart LR
D --> DS[DdlScripter]
DS --> I[ImportExporter] --> TD[(Target DB)]
DS --> E[ScriptExporter] --> P[/Export package schema.sql · data*.sql · lob/ · manifest.json/]
- DS --> PE[ParquetExporter · CsvExporter DuckDB workspace] --> PP[/Parquet or CSV package schema.sql · data/*.parquet or *.csv · manifest.json/]
+ DS --> PE[ParquetExporter · CsvExporter · ExcelExporter DuckDB workspace] --> PP[/Parquet, CSV or Excel package schema.sql · data/*.parquet, *.csv or *.xlsx · manifest.json/]
P --> SI[ScriptImporter] --> TD
- PP --> PI[ParquetImporter · CsvImporter] --> TD
+ PP --> PI[ParquetImporter · CsvImporter · ExcelImporter] --> TD
VS[(Vector DB Milvus · Qdrant · Weaviate · Pinecone Elasticsearch · OpenSearch · Chroma)] --> VC[VdbClient REST API]
VC --> VT[Collection tree collection · field · key · vector index]
VT --> VV[VdbMetaDataVisitor] --> VD[Vdb dialect target with vectors] --> VI[VdbImportHandler] --> TD
@@ -83,6 +84,7 @@ flowchart LR
| `ScriptImporter` | Imports an export package (validates `manifest.json`, runs files in order, restores LOBs) |
| `ParquetExporter` / `ParquetImporter` | Parquet packages and Parquet files of other tools, written and read by an embedded DuckDB workspace |
| `CsvExporter` / `CsvImporter` | CSV packages (column types in `manifest.json`) and CSV files of other tools, through the same DuckDB workspace |
+| `ExcelExporter` / `ExcelImporter` | Excel packages (column types in `manifest.json`) and Excel workbooks of other tools, a sheet is read through the same DuckDB workspace |
| `ManualTransaction` | Runs an import in one transaction which the user commits or rolls back. DDL which would commit the rows (MySQL, MariaDB, Oracle, H2) waits for the commit |
| `AbstractFileImporter` | Picks the importer of a package by the data format in its `manifest.json` |
| `TableQuery` | Columns, WHERE, GROUP BY and ORDER BY of the data viewer, used by exports per table |
@@ -167,7 +169,7 @@ SqlJam starts with a splash screen while it loads the configuration, the data so
1. SqlJam opens its main window with the data sources in the tree, where it was closed, and connects again the data sources which were connected then. Expand a data source to connect it. **+** on the toolbar creates one: choose its category first (relational, OLAP or vector databases), the types and the fields follow it. **Connect through SSH tunnel** reaches a database behind a bastion host. A password which is not saved is asked when the data source is connected, and asked again when the database refuses it. The first start brings an **Example Shop (H2)** data source with a few e-commerce tables to try everything right away. **Help → Restore Example Database** brings it back at any time.
2. Right-click a database or schema → **Export…**
-3. Pick tables, choose **SQL scripts**, **Parquet** or **CSV** (folder) or **Database** (another data source, or a new one from the **+** button next to it), press **Start**. An import into a database runs in one transaction or commits every N rows (N is typed next to it), check **Skip rows with errors** to go on after bad rows and **Confirm before commit** to review it first, and choose **Update or insert by key** or **Skip existing by key** for rows which exist already.
+3. Pick tables, choose **SQL scripts**, **Parquet**, **CSV** or **Excel** (folder) or **Database** (another data source, or a new one from the **+** button next to it), press **Start**. An import into a database runs in one transaction or commits every N rows (N is typed next to it), check **Skip rows with errors** to go on after bad rows and **Confirm before commit** to review it first, and choose **Update or insert by key** or **Skip existing by key** for rows which exist already.
4. Open a table, narrow its rows on the **Data** tab with columns, WHERE, GROUP BY and ORDER BY, then **Export…** just those rows. A header sorts the rows of the page, a double click shows a whole value and **Copy Rows As** copies the selected rows. **Info** on the toolbar or a right-click shows the overview and the health of the data source.
5. **SQL Query** on the toolbar or a right-click opens an editor for the data source. **Ctrl+Enter** (**⌘+Enter** on macOS) runs the statement at the caret, **Ctrl+Shift+Enter** runs them all, then **Export…** sends all rows of the query through the same exits.
6. Create a data source of the **Vector databases** category for Milvus, Qdrant, Weaviate, Pinecone, Elasticsearch, OpenSearch or Chroma, with an API key, a user and password or neither, as the database asks. Expand it in the tree to its databases, collections and partitions (tenants of Weaviate, namespaces of Pinecone), open a collection to see its fields and its records page by page, narrowed by conditions, a native filter or a nearest neighbor search. **Import…** on the collection tab, a right-click or **File → Import from Vector Database…** opens the wizard which imports the checked collections into a data source with vectors. Only such data sources are offered as targets.
@@ -220,7 +222,7 @@ export/
└── manifest.json # source, target, options, files (sha256), row counts
```
-A Parquet package has the same layout with `data/
.parquet` instead of SQL data and LOB files, a CSV package with `data/
.csv` and a header row. LOB values stay inside the Parquet or CSV columns, `manifest.json` records `"dataFormat": "PARQUET"` or `"CSV"` (with the type of every CSV column), so an import picks the right importer by itself and reads the values back exactly.
+A Parquet package has the same layout with `data/
.parquet` instead of SQL data and LOB files, a CSV package with `data/
.csv` and a header row, an Excel package with `data/
.xlsx` (one sheet with a header row, `
_2.xlsx` above 1,048,575 rows). LOB values stay inside the Parquet, CSV or Excel columns, `manifest.json` records `"dataFormat": "PARQUET"`, `"CSV"` or `"EXCEL"` (with the type of every CSV and Excel column), so an import picks the right importer by itself and reads the values back exactly.
---
@@ -256,6 +258,10 @@ CsvExporter csv = new CsvExporter(new File("export-csv"));
csv.setDelimiter(";");
csv.setMaxFileSize(10 * 1024 * 1024);
csv.exportDdlAndData();
+
+// The same tables as an Excel package: data/orders.xlsx, one sheet with a header row
+ExcelExporter excel = new ExcelExporter(new File("export-excel"));
+excel.exportDdlAndData();
```
**Output**: `export/schema.sql`, `export/data/orders.sql`, `export/data/orders_2.sql`, `export/lob/…`, `export/manifest.json`:
@@ -337,7 +343,7 @@ try (Connection connection = DriverManager.getConnection(
}
```
-**Output**: `ScriptImporter` refuses packages whose status is not `COMPLETED`, whose target type differs, or whose files fail the SHA-256 check. `AbstractFileImporter.forDirectory(dir, connection, dbType)` returns the importer of the package (SQL, Parquet or CSV), and files of other tools are loaded by `ParquetImporter` or `CsvImporter`. A `ManualTransaction` keeps the import open until you commit or roll back:
+**Output**: `ScriptImporter` refuses packages whose status is not `COMPLETED`, whose target type differs, or whose files fail the SHA-256 check. `AbstractFileImporter.forDirectory(dir, connection, dbType)` returns the importer of the package (SQL, Parquet, CSV or Excel), and files of other tools are loaded by `ParquetImporter`, `CsvImporter` or `ExcelImporter` (`setSheet` picks a sheet, the first one by default). A `ManualTransaction` keeps the import open until you commit or roll back:
```java
ParquetImporter importer = new ParquetImporter(connection, DbType.POSTGRESQL);
@@ -384,6 +390,7 @@ try (ManualTransaction transaction = new ManualTransaction(connection, DbType.PO
| Import packages with SqlJam | Manifest validation, ordered files, LOB restore and FKs last |
| Use **Parquet** for analytics and lakes | Compact columnar files any engine reads, the schema still travels in `schema.sql` |
| Use **CSV** for spreadsheets and text tools | Opens anywhere, and SqlJam still restores the exact types from `manifest.json` |
+| Use **Excel** for business teams | Real number and date cells with a frozen header row, and the exact types still come back from `manifest.json` |
| Keep **one transaction** for imports | An error rolls back everything, **Confirm before commit** shows the log and the row counts before the commit |
| Load again with **Update or insert by key** | Kept tables are updated by their primary keys, nothing is dropped |
| Shape a report in **SQL Query** first | The first rows show the columns and values, **Export…** then reads all rows by one cursor |
@@ -490,7 +497,7 @@ Export options (UI / `ExportConfiguration`):
| `indexIncluded` / `foreignKeyIncluded` / `commentIncluded` / `sequenceIncluded` | `true` | Objects to copy |
| `failFast` | `true` | Stop on the first data error, `false` skips the rows with errors and reports each of them |
| `identifierCase` | `AUTO` | `AUTO`, `KEEP`, `LOWER`, `UPPER` |
-| `dataFormat` / `compression` | `SQL` / `ZSTD` | `SQL`, `PARQUET` or `CSV` packages, Parquet compression `ZSTD`, `SNAPPY`, `GZIP`, `UNCOMPRESSED` |
+| `dataFormat` / `compression` | `SQL` / `ZSTD` | `SQL`, `PARQUET`, `CSV` or `EXCEL` packages, Parquet compression `ZSTD`, `SNAPPY`, `GZIP`, `UNCOMPRESSED` |
| `csvDelimiter` | `,` | Delimiter of CSV packages |
| `writeMode` / `keyColumnNames` | `INSERT` | `UPSERT` updates the rows of the same key (the primary key or chosen columns) and inserts the others, `SKIP_EXISTING` keeps them and inserts the others |
| `CsvOptions` | comma, `"`, UTF-8 | Delimiter, quote, NULL text, header, encoding and date format of CSV files |
@@ -527,7 +534,7 @@ Environment: Apple M2 Max, 32 GB, JDK 17. The databases run in Docker on a serve
|---|---|
| Rows paged by primary key | Stable, deterministic reads on every database |
| Tables copied one by one | Predictable load on production servers |
-| Packages contain plain SQL, Parquet or CSV | Readable, editable and portable, or columnar for analytics |
+| Packages contain plain SQL, Parquet, CSV or Excel | Readable, editable and portable, or columnar for analytics |
| Writes sized for each database | Batched inserts, rewritten into multi-row statements for PostgreSQL and MySQL, several rows a statement for DuckDB, with the same value conversions everywhere |
| Inserts of a SQL package merged on import | The package stays one readable row a line, the database receives up to 100 rows a statement |
@@ -541,7 +548,7 @@ Environment: Apple M2 Max, 32 GB, JDK 17. The databases run in Docker on a serve
| Blog | [docs/blogger/sqljam-en.md](docs/blogger/sqljam-en.md) |
| Developer guide | [docs/developer-guide.md](docs/developer-guide.md), the Java API for exports, imports, copies and queries |
| Change logs | [change_logs](change_logs) |
-| Core API | `com.github.sqljam.impexp` (`Exporter`, `ScriptExporter`, `ImportExporter`, `ScriptImporter`, `ParquetExporter`, `ParquetImporter`, `CsvExporter`, `CsvImporter`, `ManualTransaction`) |
+| Core API | `com.github.sqljam.impexp` (`Exporter`, `ScriptExporter`, `ImportExporter`, `ScriptImporter`, `ParquetExporter`, `ParquetImporter`, `ManualTransaction`) and `com.github.sqljam.impexp.fs` (`CsvExporter`, `CsvImporter`, `ExcelExporter`, `ExcelImporter`) |
**FAQ**
@@ -552,6 +559,8 @@ Environment: Apple M2 Max, 32 GB, JDK 17. The databases run in Docker on a serve
| Can I copy a table inside the same database? | Yes. Choose the same data source and schema as the target and a table name such as `{table}_copy` |
| How are LOBs stored in Parquet? | Inside the Parquet columns (strings and binaries), no extra LOB files |
| How exact is CSV? | Exact. NULL is an empty field, an empty string is `""`, binaries are escaped, and every column is read back with its type from `manifest.json` |
+| How exact is Excel? | Exact as well. A cell holds 15 digits and milliseconds, so longer numbers and timestamps with microseconds are written as text, and every column is read back with its type from `manifest.json` |
+| Can I import an Excel file without `manifest.json`? | Yes. **Import Parquet, CSV or Excel Files**, add the `.xlsx` file and choose a sheet. Its first row names the columns, number, date and boolean cells keep their types, formulas give their computed values. Older workbooks (`.xls`) are saved as `.xlsx` first |
| How are rows matched when they are updated or skipped? | By the primary key, or by the columns chosen in **Key Columns**. Choose the columns of a unique index of the target table: MySQL and MariaDB match rows by their unique indexes, PostgreSQL, SQLite and DuckDB require such an index. A table without primary key and chosen columns is inserted |
| Why does Db2 refuse a wide table? | Rows wider than a 4K page need a table space of larger pages. Create one once, e.g. `CREATE BUFFERPOOL BP32K PAGESIZE 32K` and `CREATE TABLESPACE TS32K PAGESIZE 32K BUFFERPOOL BP32K`, Db2 then places wide tables there by itself |
| Do names have to match in case? | No. An existing target table and its columns are matched without case, e.g. `OrderId` of the source writes the column `orderid` of PostgreSQL or `ORDERID` of Oracle |
diff --git a/docs/blogger/sqljam-en.md b/docs/blogger/sqljam-en.md
index f19cec5..f691ef8 100644
--- a/docs/blogger/sqljam-en.md
+++ b/docs/blogger/sqljam-en.md
@@ -9,7 +9,7 @@
**SqlJam**: *Move tables across databases. Schema, data and all.*
A Java 17 + JavaFX desktop tool that copies tables between relational and OLAP databases (**MySQL, MariaDB, PostgreSQL, Oracle, SQL Server, Db2, H2, SQLite, Microsoft Access, DuckDB, ClickHouse** and more) in any direction:
-**import directly** into a target database or into the same schema as copies, or save a self-describing **export package** of SQL, **Parquet** or **CSV** files and import it later. Imports into a database run in **one transaction** which an error rolls back, and rows are **inserted, updated or skipped by key**.
+**import directly** into a target database or into the same schema as copies, or save a self-describing **export package** of SQL, **Parquet**, **CSV** or **Excel** files and import it later. Imports into a database run in **one transaction** which an error rolls back, and rows are **inserted, updated or skipped by key**.

@@ -29,6 +29,7 @@ SqlJam reads **one metadata tree** and generates SQL with a **dialect chosen by
| Scripts without context | `manifest.json`: source, target, options, SHA-256 per file, row counts |
| Analytics needs Parquet | Parquet packages through an embedded DuckDB, Parquet files of other tools loaded into any table |
| Spreadsheets need CSV | CSV packages with your delimiter, quote, NULL text, header, encoding (UTF-8 with BOM, GBK and more) and date format, exact types kept in `manifest.json`, CSV files of other tools loaded too |
+| Business teams use Excel | Excel packages with one `.xlsx` workbook for each table, real number and date cells, exact types kept in `manifest.json`, workbooks of other tools loaded without `manifest.json` from the sheet you choose |
| An import went wrong | **One transaction** by default, rolled back on any error, or **commit every N rows**. **Skip rows with errors** goes on and logs each skipped row. **Confirm before commit** reviews a successful import first |
| Did every row arrive? | A **migration report** for every import and export, also when it fails or is cancelled: rows per table, skipped rows with their errors, target rows counted afterwards, created objects and where it stopped. **Import History** lists every report, Markdown, HTML or JSON on export |
| A copy has to stay up to date | **Sync Tasks** copy the changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam while it is open or by your own scheduler through its command line, vector collections included, a report for every run |
@@ -77,7 +78,7 @@ SqlJam opens its main window like DBeaver and DataGrip, where it was closed, wit
Right-click a data source to **Connect**, and once it is connected the same menu offers **Disconnect**, which also closes its table tabs. When an import or export needs a target data source, the **+** button next to it creates one on the spot. **Exit** sits at the right end of the toolbar. **Help → About SqlJam** shows the version, the home page, the repository and how to reach the author, and the GitHub icon at the bottom right opens the repository.
-**SQL Query** on the toolbar opens an editor for the selected data source. **Ctrl+Enter** (**⌘+Enter** on macOS) runs the statement at the caret, **Ctrl+Shift+Enter** runs them all, and **Export…** sends all rows of the query to SQL, Parquet, CSV or another database:
+**SQL Query** on the toolbar opens an editor for the selected data source. **Ctrl+Enter** (**⌘+Enter** on macOS) runs the statement at the caret, **Ctrl+Shift+Enter** runs them all, and **Export…** sends all rows of the query to SQL, Parquet, CSV, Excel or another database:

@@ -155,8 +156,8 @@ flowchart LR
D --> I[Import directly] --> TD[(Target DB)]
D --> E[Export package schema.sql · data*.sql · lob/ · manifest.json]
E --> SI[ScriptImporter] --> TD
- D --> P[Parquet or CSV package DuckDB workspace · data/*.parquet or *.csv]
- P --> PI[ParquetImporter · CsvImporter] --> TD
+ D --> P[Parquet, CSV or Excel package DuckDB workspace · data/*.parquet, *.csv or *.xlsx]
+ P --> PI[ParquetImporter · CsvImporter · ExcelImporter] --> TD
V[(Vector DB)] --> VC[VdbClient · REST API] --> VT[Collection tree] --> VD[Vdb dialect] --> TD
```
@@ -164,6 +165,7 @@ flowchart LR
- **Generate for the target**: `DbType.createDialect(major, minor)` picks the version subclass.
- **Stream rows**: count rows (percentage progress) → page by primary key → normalize values → batch insert or SQL literals.
- **Parquet and CSV**: rows pass an embedded DuckDB workspace, `COPY ... TO` writes them, `read_parquet` or `read_csv` with the column types of `manifest.json` loads them back.
+- **Excel**: the same workspace writes one sheet for each table with a frozen header row. A sheet is read back as CSV, so a workbook of any spreadsheet loads like a CSV file of another tool.
- **Transactions**: an import runs in one transaction, committed when it succeeds or after your confirmation. MySQL, MariaDB, Oracle and H2 commit around DDL, so keys and identity values are set after the commit.
- **Upserts and skips**: `ON CONFLICT`, `ON DUPLICATE KEY UPDATE` or `MERGE` of each database, kept tables, indexes and keys are skipped.
- **Skipped errors**: a failed page is written row by row under savepoints, each bad row is logged with its key and the others are kept.
@@ -207,6 +209,9 @@ parquet.exportDdlAndData(); // schema.sql, data/orders.parquet, constraints.sq
CsvExporter csv = new CsvExporter(new File("export-csv"));
csv.setDelimiter(";");
csv.exportDdlAndData(); // data/orders.csv, data/orders_2.csv ...
+
+ExcelExporter excel = new ExcelExporter(new File("export-excel"));
+excel.exportDdlAndData(); // data/orders.xlsx, one sheet with a header row
```
### Example 2: Oracle → SQL Server directly (schema created)
@@ -321,7 +326,7 @@ schtasks /Create /TN "SqlJam sync" /SC MINUTE /MO 15 /TR "C:\SqlJam\sqljam.bat s
Environment: Apple M2 Max, 32 GB, JDK 17. The databases run in Docker on a server of the local network (about 100 Mbit/s), H2, DuckDB and the packages are local. Default settings. Each scenario is measured by `TransferBenchmark`.
-**Quality**: a full cross-database import matrix with every column type of every database, SQL, Parquet and CSV package round trips, commit and roll back verified on every database, copies in the same schema, old-version SQL executed on real servers, UI and boundary tests.
+**Quality**: a full cross-database import matrix with every column type of every database, SQL, Parquet, CSV and Excel package round trips, commit and roll back verified on every database, copies in the same schema, old-version SQL executed on real servers, UI and boundary tests.
## 9. Design Trade-offs
@@ -346,7 +351,7 @@ Environment: Apple M2 Max, 32 GB, JDK 17. The databases run in Docker on a serve
6. Timestamps, unsigned numbers, bits, money, UUID and JSON survive the trip.
7. Pooled connections and batch inserts: 40k to 95k rows/s for direct imports.
8. A mainstream dark UI with 7 themes, percentage progress and cancel.
-9. Parquet and CSV packages and files of other tools, DuckDB and ClickHouse as OLAP data sources, imports in one transaction and rows updated by key.
+9. Parquet, CSV and Excel packages and files of other tools, DuckDB and ClickHouse as OLAP data sources, imports in one transaction and rows updated by key.
10. A SQL Query editor exports the rows of any query through the same exits, columns of tables keep their types.
11. Query the rows of a table, export just those rows, or copy tables inside the same schema.
12. Collections of Milvus, Qdrant, Weaviate, Pinecone, Elasticsearch, OpenSearch and Chroma go straight into a database with vectors, previewed by conditions, native filters or nearest neighbor searches.
diff --git a/docs/blogger/sqljam-medium.md b/docs/blogger/sqljam-medium.md
index 29ced3e..32cb23f 100644
--- a/docs/blogger/sqljam-medium.md
+++ b/docs/blogger/sqljam-medium.md
@@ -8,7 +8,7 @@ Tables, indexes, constraints, sequences, partitions and rows, in one go.
## Overview
-**SqlJam** is a Java 17 + JavaFX desktop tool that copies tables between relational and OLAP databases (**MySQL, MariaDB, PostgreSQL, Oracle, SQL Server, Db2, H2, SQLite, Microsoft Access, DuckDB, ClickHouse** and more) in any direction. Import directly into a target database or into the same schema as copies, or save a self-describing **export package** of SQL, **Parquet** or **CSV** files and import it later. Imports into a database run in **one transaction** which an error rolls back, and rows are **inserted, updated or skipped by key**.
+**SqlJam** is a Java 17 + JavaFX desktop tool that copies tables between relational and OLAP databases (**MySQL, MariaDB, PostgreSQL, Oracle, SQL Server, Db2, H2, SQLite, Microsoft Access, DuckDB, ClickHouse** and more) in any direction. Import directly into a target database or into the same schema as copies, or save a self-describing **export package** of SQL, **Parquet**, **CSV** or **Excel** files and import it later. Imports into a database run in **one transaction** which an error rolls back, and rows are **inserted, updated or skipped by key**.
Source: https://github.com/paganini2008/sqljam
@@ -26,6 +26,7 @@ SqlJam reads one metadata tree and generates SQL with a dialect chosen by target
- **Scripts without context** → manifest.json with source, target, options, SHA-256 per file and row counts
- **Analytics needs Parquet** → Parquet packages through an embedded DuckDB, Parquet files of other tools loaded into any table
- **Spreadsheets need CSV** → CSV packages with your delimiter, quote, NULL text, header, encoding and date format, exact types kept in manifest.json, CSV files of other tools loaded too
+- **Business teams use Excel** → Excel packages with one .xlsx workbook for each table, real number and date cells, exact types kept in manifest.json, workbooks of other tools loaded without manifest.json from the sheet you choose
- **An import went wrong** → one transaction by default, rolled back on any error, or commit every N rows. Skip rows with errors goes on and logs each skipped row. Confirm before commit reviews a successful import first
- **Did every row arrive?** → a migration report for every import and export, also when it fails or is cancelled: rows per table, skipped rows with their errors, target rows counted afterwards, created objects and where it stopped. Import History lists every report, Markdown, HTML or JSON on export
- **A copy has to stay up to date** → Sync Tasks copy the changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam while it is open or by your own scheduler through its command line, vector collections included, a report for every run
@@ -75,7 +76,7 @@ Step 4. narrow the rows of a table on the Data tab and export just those rows. R

-Step 5. open SQL Query on the toolbar, run a query with Ctrl+Enter (⌘+Enter on macOS) and press Export… to send all its rows to SQL, Parquet, CSV or another database:
+Step 5. open SQL Query on the toolbar, run a query with Ctrl+Enter (⌘+Enter on macOS) and press Export… to send all its rows to SQL, Parquet, CSV, Excel or another database:

@@ -148,6 +149,7 @@ Vector databases (sources only):
- **Generate for the target**: DbType.createDialect(major, minor) picks the version subclass.
- **Stream rows**: count rows for percentage progress, page by primary key, normalize values, then batch insert or write SQL literals.
- **Parquet and CSV**: rows pass an embedded DuckDB workspace, COPY TO writes the files, read_parquet or read_csv with the column types of manifest.json loads them back.
+- **Excel**: the same workspace writes one sheet for each table with a frozen header row, a sheet is read back as CSV, so a workbook of any spreadsheet loads like a CSV file of another tool.
- **Transactions**: an import runs in one transaction, committed when it succeeds or after your confirmation. MySQL, MariaDB, Oracle and H2 commit around DDL, so keys and identity values are set after the commit.
- **Upserts and skips**: ON CONFLICT, ON DUPLICATE KEY UPDATE or MERGE of each database, kept tables, indexes and keys are skipped.
- **Skipped errors**: a failed page is written row by row under savepoints, each bad row is logged with its key and the others are kept.
@@ -194,6 +196,9 @@ parquet.exportDdlAndData();
CsvExporter csv = new CsvExporter(new File("export-csv"));
csv.setDelimiter(";");
csv.exportDdlAndData(); // data/orders.csv, data/orders_2.csv ...
+
+ExcelExporter excel = new ExcelExporter(new File("export-excel"));
+excel.exportDdlAndData(); // data/orders.xlsx, one sheet with a header row
```
### Example 2: Oracle → SQL Server directly
@@ -291,7 +296,7 @@ Sync tasks run without the window too. Copy Command in Transfer > Sync Tasks cop
- SQL package → PostgreSQL: 10.1 s, 19.8k rows/s
- Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload): 18.3 s, 1.1k rows/s
-Quality: a full cross-database import matrix with every column type of every database, SQL, Parquet and CSV package round trips, commit and roll back verified on every database, copies in the same schema, old-version SQL executed on real servers, UI and boundary tests.
+Quality: a full cross-database import matrix with every column type of every database, SQL, Parquet, CSV and Excel package round trips, commit and roll back verified on every database, copies in the same schema, old-version SQL executed on real servers, UI and boundary tests.
## Design Trade-offs
@@ -316,7 +321,7 @@ Quality: a full cross-database import matrix with every column type of every dat
6. Timestamps, unsigned numbers, bits, money, UUID and JSON survive the trip.
7. Pooled connections and batch inserts: 40k to 95k rows/s for direct imports.
8. A mainstream dark UI with 7 themes, percentage progress and cancel.
-9. Parquet and CSV packages and files of other tools, DuckDB and ClickHouse as OLAP data sources, imports in one transaction and rows updated or skipped by key.
+9. Parquet, CSV and Excel packages and files of other tools, DuckDB and ClickHouse as OLAP data sources, imports in one transaction and rows updated or skipped by key.
10. A SQL Query editor exports the rows of any query through the same exits, columns of tables keep their types.
11. Query the rows of a table, export just those rows, or copy tables inside the same schema.
12. Collections of Milvus, Qdrant, Weaviate, Pinecone, Elasticsearch, OpenSearch and Chroma go straight into a database with vectors, previewed by conditions, native filters or nearest neighbor searches.
diff --git a/docs/blogger/sqljam-zh.md b/docs/blogger/sqljam-zh.md
index 2e83fbd..9699876 100644
--- a/docs/blogger/sqljam-zh.md
+++ b/docs/blogger/sqljam-zh.md
@@ -9,7 +9,7 @@
**SqlJam**:*Move tables across databases. Schema, data and all.*
一个 Java 17 + JavaFX 的桌面导入导出工具,支持关系型与 OLAP 数据库(**MySQL、MariaDB、PostgreSQL、Oracle、SQL Server、Db2、H2、SQLite、Microsoft Access、DuckDB、ClickHouse** 等)任意互导:
-可以**直接导入目标库**,也可以在同一个 schema 里复制表,或者导出为带描述文件的 **SQL / Parquet / CSV 导出包**,之后再成对导入。导入目标库默认在**一个事务**里完成,出错整体回滚,数据可以**按主键更新、插入或跳过**。
+可以**直接导入目标库**,也可以在同一个 schema 里复制表,或者导出为带描述文件的 **SQL / Parquet / CSV / Excel 导出包**,之后再成对导入。导入目标库默认在**一个事务**里完成,出错整体回滚,数据可以**按主键更新、插入或跳过**。

@@ -29,6 +29,7 @@ SqlJam 用**一棵元数据树 + 按目标库和版本选择的方言**,把这
| 脚本没有上下文 | `manifest.json`:源、目标、选项、文件 SHA-256、行数 |
| 分析要 Parquet | 内置 DuckDB 生成 Parquet 导出包,也能把其他工具产出的 Parquet 文件加载进任意表 |
| 表格工具要 CSV | CSV 导出包可选分隔符、引号、NULL 表示、表头、编码(Excel 用的 UTF-8 BOM、GBK 等)和日期格式,`manifest.json` 记录每列类型,导回时精确还原,也能加载其他工具的 CSV 文件 |
+| 业务同事只用 Excel | Excel 导出包每张表一个 `.xlsx` 工作簿,数字、日期、布尔是真正的单元格,`manifest.json` 记录每列类型,导回时精确还原。其他工具的 Excel 文件不需要 `manifest.json`,选好工作表,第一行作为列名,类型自动识别 |
| 导错了怎么办 | 默认**一个事务**:出错整体回滚,也可以**每 N 行提交一次**。勾选**跳过出错的行**则继续导入,每条跳过的记录都写进日志,可筛选、可保存。勾选**提交前确认**,导入成功后先看结果再 **Commit** 或 **Roll Back** |
| 数据到底全过去了没有 | 每次导入导出都有**迁移报告**,成功、失败、取消或回滚都有:每张表的源行数、写入行数、跳过行数,结束后重新统计的目标行数和 ✓ / ✗ 核对结果,创建了哪些对象,每条跳过的行和原因,停在哪张表的第几行,以及中断的错误。**View Report** 单独一页打开,**Transfer → Import History** 列出全部历史报告,可导出 Markdown、HTML、JSON |
| 副本要一直保持最新 | **Sync Tasks** 定时同步:按更新时间列或递增主键找出上次之后变化的行,每 N 分钟或每天定点运行。首次全量,提交成功后才移动水位,连接类错误自动重试,数据类错误不重试。SqlJam 打开时自动运行,关着时可以复制任务的命令行,自己填进 crontab 或 Windows 任务计划,SqlJam 不会改动系统。向量库集合同样可以同步,每次同步都有迁移报告 |
@@ -77,7 +78,7 @@ bin/
右键数据源选 **Connect**,连上之后同一个菜单变成 **Disconnect**,断开时它的表页签一起关闭。导入导出选目标数据源时,旁边的 **+** 按钮可以当场新建一个。工具栏最右边是 **Exit**。**Help → About SqlJam** 里有版本、主页、仓库地址和作者联系方式,右下角的 GitHub 图标点一下直接打开仓库。
-工具栏的 **SQL Query** 为选中的数据源打开查询器。**Ctrl+Enter**(macOS 上是 **⌘+Enter**)执行光标所在的语句,**Ctrl+Shift+Enter** 执行全部,**Export…** 把查询的全部结果导出为 SQL、Parquet、CSV 或导入另一个数据库:
+工具栏的 **SQL Query** 为选中的数据源打开查询器。**Ctrl+Enter**(macOS 上是 **⌘+Enter**)执行光标所在的语句,**Ctrl+Shift+Enter** 执行全部,**Export…** 把查询的全部结果导出为 SQL、Parquet、CSV、Excel 或导入另一个数据库:

@@ -155,8 +156,8 @@ flowchart LR
D --> I[直接导入] --> TD[(目标库)]
D --> E[导出包 schema.sql · data*.sql · lob/ · manifest.json]
E --> SI[ScriptImporter] --> TD
- D --> P[Parquet / CSV 导出包 DuckDB 中转 · data/*.parquet 或 *.csv]
- P --> PI[ParquetImporter · CsvImporter] --> TD
+ D --> P[Parquet / CSV / Excel 导出包 DuckDB 中转 · data/*.parquet、*.csv 或 *.xlsx]
+ P --> PI[ParquetImporter · CsvImporter · ExcelImporter] --> TD
V[(向量数据库)] --> VC[VdbClient · REST API] --> VT[集合树] --> VD[Vdb 方言] --> TD
```
@@ -164,6 +165,7 @@ flowchart LR
- **按目标生成 SQL**:`DbType.createDialect(major, minor)` 选出版本子类。
- **数据流**:先统计行数(百分比进度)→ 按主键分页读取 → 值归一化 → 批量写入或生成字面量。
- **Parquet 与 CSV**:数据经过内置的 DuckDB 中转,`COPY ... TO` 写出,`read_parquet` 或按 `manifest.json` 中列类型的 `read_csv` 读回。
+- **Excel**:同一个 DuckDB 中转,每张表写成一个带冻结表头的工作表。读回时工作表先转成 CSV,所以任何表格软件的工作簿都能像外部 CSV 文件一样加载。
- **事务**:导入在一个事务里完成,成功自动提交或经你确认后提交。MySQL、MariaDB、Oracle、H2 执行 DDL 会隐式提交,外键和自增值等语句延后到提交之后执行。
- **按主键更新或跳过**:使用各库的 `ON CONFLICT`、`ON DUPLICATE KEY UPDATE` 或 `MERGE`,已存在的表、索引、键自动跳过。
- **跳过出错的行**:出错的一页在 savepoint 保护下逐行重写,每条坏行连同主键和错误写进日志,其余行照常保留。
@@ -207,6 +209,9 @@ parquet.exportDdlAndData(); // schema.sql、data/orders.parquet、constraints.
CsvExporter csv = new CsvExporter(new File("export-csv"));
csv.setDelimiter(";");
csv.exportDdlAndData(); // data/orders.csv、data/orders_2.csv ...
+
+ExcelExporter excel = new ExcelExporter(new File("export-excel"));
+excel.exportDdlAndData(); // data/orders.xlsx,一个带表头的工作表
```
### Example 2:Oracle 直接导入 SQL Server(自动建 schema)
@@ -321,7 +326,7 @@ schtasks /Create /TN "SqlJam sync" /SC MINUTE /MO 15 /TR "C:\SqlJam\sqljam.bat s
环境:Apple M2 Max / 32 GB / JDK 17。数据库在局域网服务器的 Docker 中(约 100 Mbit/s),H2、DuckDB 和导出包在本机。默认配置。每个场景由 `TransferBenchmark` 测得。
-**质量**:覆盖每种数据库全部字段类型的跨库互导矩阵,SQL、Parquet、CSV 导出包回放,事务提交与回滚、按主键更新或插入在每种数据库上验证,同 schema 复制,旧版本语法在真实库上执行,界面功能与边界测试。
+**质量**:覆盖每种数据库全部字段类型的跨库互导矩阵,SQL、Parquet、CSV、Excel 导出包回放,事务提交与回滚、按主键更新或插入在每种数据库上验证,同 schema 复制,旧版本语法在真实库上执行,界面功能与边界测试。
## 9. 设计取舍(Design Trade-offs)
@@ -346,7 +351,7 @@ schtasks /Create /TN "SqlJam sync" /SC MINUTE /MO 15 /TR "C:\SqlJam\sqljam.bat s
6. 时间、无符号、bit、money、UUID、JSON 等值跨库不失真。
7. 连接池 + 批量写入,直接导入 4 万 ~ 9.5 万行/秒。
8. 暗色主流界面,7 种主题,百分比进度与取消。
-9. Parquet、CSV 导出包与外部文件加载,DuckDB、ClickHouse 作为 OLAP 数据源,导入默认一个事务、出错整体回滚,支持按主键更新或插入。
+9. Parquet、CSV、Excel 导出包与外部文件加载,DuckDB、ClickHouse 作为 OLAP 数据源,导入默认一个事务、出错整体回滚,支持按主键更新或插入。
10. SQL Query 查询器的任意查询结果都能走同样的导出出口,来自表的列保留原类型。
11. 表数据可查询,只导出查询结果,也能在同一 schema 内复制表。
12. Milvus、Qdrant、Weaviate、Pinecone、Elasticsearch、OpenSearch、Chroma 的集合直接导入支持向量的数据库,导入前可按条件、原生过滤或最近邻搜索预览。
diff --git a/docs/developer-guide.md b/docs/developer-guide.md
index 5cd53ea..f314893 100644
--- a/docs/developer-guide.md
+++ b/docs/developer-guide.md
@@ -2,7 +2,7 @@
**Use the engine of SqlJam from your own Java code.**
-The desktop application is a thin layer over the `com.github.sqljam.impexp` API. Every export, import and copy that the UI runs is a few lines of Java: configure a source, pick an exit, call `export`. This guide shows those lines for each task.
+The desktop application is a thin layer over the `com.github.sqljam.impexp` API (CSV and Excel classes in `com.github.sqljam.impexp.fs`). Every export, import and copy that the UI runs is a few lines of Java: configure a source, pick an exit, call `export`. This guide shows those lines for each task.
---
@@ -13,10 +13,10 @@ The desktop application is a thin layer over the `com.github.sqljam.impexp` API.
| [Add SqlJam to a project](#add-sqljam-to-a-project) | Maven coordinates |
| [Core classes](#core-classes) | Overview of the API |
| [1. Export tables as a SQL package](#1-export-tables-as-a-sql-package) | `ScriptExporter` |
-| [2. Export Parquet and CSV packages](#2-export-parquet-and-csv-packages) | `ParquetExporter`, `CsvExporter`, `CsvOptions` |
+| [2. Export Parquet and CSV packages](#2-export-parquet-and-csv-packages) | `ParquetExporter`, `CsvExporter`, `CsvOptions`, `ExcelExporter` |
| [3. Copy tables into another database](#3-copy-tables-into-another-database) | `ImportExporter` |
| [4. Import an export package](#4-import-an-export-package) | `AbstractFileImporter` |
-| [5. Load Parquet and CSV files of other tools](#5-load-parquet-and-csv-files-of-other-tools) | `ParquetImporter`, `CsvImporter` |
+| [5. Load Parquet and CSV files of other tools](#5-load-parquet-and-csv-files-of-other-tools) | `ParquetImporter`, `CsvImporter`, `ExcelImporter` |
| [6. Export the rows of a query](#6-export-the-rows-of-a-query) | `ExportConfiguration.queries` |
| [7. Export part of a table](#7-export-part-of-a-table) | `TableQuery` |
| [8. Transactions and errors](#8-transactions-and-errors) | `ManualTransaction`, `SharedConnectionFactory` |
@@ -59,10 +59,10 @@ flowchart LR
S[(Source database)] --> E[Exporter metadata, pages of rows]
Q[Free query] --> E
E --> H1[ScriptExportHandler SQL package]
- E --> H2[DuckDB workspace Parquet / CSV package]
+ E --> H2[DuckDB workspace Parquet / CSV / Excel package]
E --> H3[ImportExportHandler target database]
P[Export package] --> I[AbstractFileImporter] --> T[(Target database)]
- F[Parquet / CSV files] --> D[DataFileImporter] --> T
+ F[Parquet / CSV / Excel files] --> D[DataFileImporter] --> T
H3 --> T
```
@@ -70,10 +70,10 @@ flowchart LR
|---|---|
| `Exporter.ExportConfiguration` | Source: database, catalogs, schemas, tables, queries and options |
| `ScriptExporter` | Writes a SQL package: `schema.sql`, data files, LOB files, `constraints.sql`, `manifest.json` |
-| `ParquetExporter` / `CsvExporter` | Write Parquet or CSV packages through an embedded DuckDB |
+| `ParquetExporter` / `CsvExporter` / `ExcelExporter` | Write Parquet, CSV or Excel packages through an embedded DuckDB |
| `ImportExporter` | Copies tables straight into another database |
-| `AbstractFileImporter` | Imports any package: SQL, Parquet or CSV, chosen by its `manifest.json` |
-| `ParquetImporter` / `CsvImporter` | Load files of other tools into a table |
+| `AbstractFileImporter` | Imports any package: SQL, Parquet, CSV or Excel, chosen by its `manifest.json` |
+| `ParquetImporter` / `CsvImporter` / `ExcelImporter` | Load files of other tools into a table, no `manifest.json` needed |
| `ManualTransaction` | One transaction for a whole import, committed or rolled back by you |
| `ExportListener` | Progress, messages, errors and cancel |
| `Dialect` / `MetaDataOperations` | Everything special to one database, one subclass per database and version |
@@ -162,6 +162,15 @@ csv.exportDdlAndData();
The column types are kept in `manifest.json`, so an import of the package restores every value with its type.
+An Excel package has one `.xlsx` workbook for each table, numbers, dates and booleans are cells of their types and longer values (more than 15 digits, microseconds, binaries) are text:
+
+```java
+ExcelExporter excel = new ExcelExporter(new File("export/excel"));
+configureSource(excel.getConfiguration());
+excel.setMaxRows(500_000); // orders.xlsx, orders_2.xlsx … (1,048,575 at most)
+excel.exportDdlAndData();
+```
+
---
## 3. Copy tables into another database
@@ -220,7 +229,7 @@ SshUtils.close("pg-prod");
## 4. Import an export package
-The package decides the importer: SQL, Parquet or CSV.
+The package decides the importer: SQL, Parquet, CSV or Excel.
```java
try (Connection connection = DriverManager.getConnection(
@@ -253,6 +262,14 @@ try (Connection connection = DriverManager.getConnection("jdbc:h2:./warehouse",
}
```
+A workbook of a spreadsheet needs no `manifest.json` either. The first row of the sheet names the columns, the types are detected:
+
+```java
+ExcelImporter importer = new ExcelImporter(connection, DbType.H2);
+importer.setSheet("Orders 2024"); // the first sheet if not set
+long rows = importer.importFiles(List.of(new File("orders.xlsx")), "ORDERS", DataFileImporter.Mode.CREATE);
+```
+
| `DataFileImporter.Mode` | Target table |
|---|---|
| `CREATE` | Dropped and created from the columns of the files |
diff --git a/docs/index.html b/docs/index.html
index ee0a9a9..bb90a48 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,7 +4,7 @@
SqlJam · Move tables across databases
-
+
@@ -187,7 +187,7 @@
SqlJam
Move tables across databases. Schema, data and all.
-
A desktop import/export tool that copies tables, indexes, constraints, sequences, partitions and rows between relational and OLAP databases, directly, as copies in the same schema, or through a self-describing SQL, Parquet or CSV export package you can import later. Imports into a database run in one transaction which an error rolls back, and rows are inserted, updated or skipped by key.
+
A desktop import/export tool that copies tables, indexes, constraints, sequences, partitions and rows between relational and OLAP databases, directly, as copies in the same schema, or through a self-describing SQL, Parquet, CSV or Excel export package you can import later. Imports into a database run in one transaction which an error rolls back, and rows are inserted, updated or skipped by key.
Dialects picked by detected or selected server version, vector types and indexes by the features detected on the target.
Keys & constraints
Primary keys, indexes, foreign keys, comments and sequences.
Partitions
Range, list, hash, interval, composite, reference and nested partitions kept for the same database type, partitioned tables marked in the tree.
-
Export packages
SQL, Parquet or CSV files, LOB files and manifest.json, split by size and imported in order.
+
Export packages
SQL, Parquet, CSV or Excel files, LOB files and manifest.json, split by size and imported in order.
One transaction
Checked by status, type and SHA-256, all or nothing or bad rows skipped and logged, confirmed before the commit if you want.
Progress you can see
Overall percentage, per-table progress, error log and cancel.
Migration reports
Every import and export leaves a report, also when it fails or is cancelled: rows per table checked against the target, skipped rows, objects and where it stopped, kept in the import history.
Scheduled sync
Changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam or by your own scheduler through its command line, vector collections too, a report for every run.
Dark by default
A modern JavaFX UI with 7 switchable themes.
-
Parquet & CSV
Columnar or text packages and files of other tools, exact types, through an embedded DuckDB.
+
Parquet, CSV & Excel
Columnar, text or spreadsheet packages and files of other tools, exact types, through an embedded DuckDB.
OLAP sources
DuckDB and ClickHouse next to the relational databases.
Query & export
A highlighted SQL Query editor or the data viewer shapes the rows, then every exit exports all of them.
Copies in place
Copy tables inside the same schema with names like {table}_copy.
Dialect: DbType.createDialect(major, minor) picks e.g. Oracle11gDialect.
-
3
Rows: counted, paged by primary key, normalized and written in batches, or written to Parquet or CSV by an embedded DuckDB.
+
3
Rows: counted, paged by primary key, normalized and written in batches, or written to Parquet, CSV or Excel by an embedded DuckDB.
4
Vector databases: a line of its own. REST clients read the collections, a visitor builds the tables and the pages go into a target whose vector features are probed first.
@@ -316,7 +316,7 @@
Ways to move a table
-
+
@@ -352,11 +352,12 @@
Ways to move a table
-
Export packages of Parquet or CSV files, look inside them with sizes, times and previews, and load Parquet or CSV files of other tools into any table.
+
Export packages of Parquet, CSV or Excel files, look inside them with sizes, times and previews, and load Parquet, CSV or Excel files of other tools into any table, an Excel sheet without manifest.json too.
parquet.setCompression("ZSTD");
parquet.exportDdlAndData(); // data/<table>.parquet
csv.setDelimiter(";");
csv.exportDdlAndData(); // data/<table>.csv, <table>_2.csv ...
+excel.exportDdlAndData(); // data/<table>.xlsx, one sheet with a header row
importer.importFiles(files, "sales", ParquetImporter.Mode.CREATE);