ParadoxReader
Paradox DB File Reader
Install / Use
/learn @teverett/ParadoxReaderREADME
paradoxReader
Paradox Database File Reader
Maven Coordinates
<groupId>com.khubla.pdxreader</groupId>
<artifactId>pdxreader</artifactId>
<version>1.6</version>
<packaging>jar</packaging>
Using the paradoxReader from the command line
The command-line interface produces CSV from .DB files. An example invocation of the command-line interface which produces CSV from "CONTACTS.DB" is:
java -jar target/paradoxReader-1.0-jar-with-dependencies.jar --file=src/test/resources/CONTACTS.DB
Using the paradoxReader in code
To use the paradoxReader in code, supply an InputStream to a .DB file, and an implementation of PDXTableListener to the class DBTableFile. An example from the unit tests:
final InputStream inputStream = TestDBFile.class.getResourceAsStream(filename);
final DBTableFile pdxFile = new DBTableFile();
final PDXTableListener pdxTableListener = new MyPDXTableListener();
pdxFile.read(inputStream, pdxTableListener);
The interface PDXTableListener looks like this:
public interface PDXTableListener {
void finish();
void header(DBTableHeader pdxTableHeader);
void record(List<DBTableValue> values);
void start(String filename);
}
The record method will be called once per record in the table file.
SQL Output
Versions 1.6+ contain the class PDXTableReaderSQLListenerImpl, a class which produces CREATE and INSERT SQL.
Related Skills
notion
343.1kNotion API for creating and managing pages, databases, and blocks.
feishu-drive
343.1k|
things-mac
343.1kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
343.1kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
