{"id":16842869,"url":"https://github.com/teverett/paradoxreader","last_synced_at":"2025-03-22T05:31:14.536Z","repository":{"id":16229236,"uuid":"18976693","full_name":"teverett/paradoxReader","owner":"teverett","description":"Paradox DB File Reader","archived":false,"fork":false,"pushed_at":"2025-02-21T21:36:18.000Z","size":748,"stargazers_count":17,"open_issues_count":2,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T08:48:05.882Z","etag":null,"topics":["database","java","paradox","reader"],"latest_commit_sha":null,"homepage":"","language":"SuperCollider","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teverett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-21T00:00:33.000Z","updated_at":"2025-01-05T20:12:05.000Z","dependencies_parsed_at":"2024-06-09T05:29:08.805Z","dependency_job_id":"e8e4b68a-6b6b-4644-bcf8-4f0935b0e450","html_url":"https://github.com/teverett/paradoxReader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teverett%2FparadoxReader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teverett%2FparadoxReader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teverett%2FparadoxReader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teverett%2FparadoxReader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teverett","download_url":"https://codeload.github.com/teverett/paradoxReader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244912800,"owners_count":20530764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","java","paradox","reader"],"created_at":"2024-10-13T12:48:49.458Z","updated_at":"2025-03-22T05:31:13.417Z","avatar_url":"https://github.com/teverett.png","language":"SuperCollider","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CI](https://github.com/teverett/paradoxReader/workflows/CI/badge.svg)\n[![DepShield Badge](https://depshield.sonatype.org/badges/teverett/paradoxReader/depshield.svg)](https://depshield.github.io)\n\nparadoxReader\n=============\n\n[Paradox](https://en.wikipedia.org/wiki/Paradox_(database)) Database File Reader\n\nMaven Coordinates\n-------------\n\n```\n\u003cgroupId\u003ecom.khubla.pdxreader\u003c/groupId\u003e\n\u003cartifactId\u003epdxreader\u003c/artifactId\u003e\n\u003cversion\u003e1.6\u003c/version\u003e\n\u003cpackaging\u003ejar\u003c/packaging\u003e\n```\n\nUsing the paradoxReader from the command line\n-------------\n\nThe command-line interface produces CSV from .DB files.  An example invocation of the command-line interface which produces CSV from \"CONTACTS.DB\" is:\n\n`java -jar target/paradoxReader-1.0-jar-with-dependencies.jar --file=src/test/resources/CONTACTS.DB`\n\nUsing the paradoxReader in code\n--------------\n\nTo 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:\n\n```java\nfinal InputStream inputStream = TestDBFile.class.getResourceAsStream(filename);\nfinal DBTableFile pdxFile = new DBTableFile();\nfinal PDXTableListener pdxTableListener = new MyPDXTableListener();\npdxFile.read(inputStream, pdxTableListener);\n```\n\nThe interface PDXTableListener looks like this:\n\n```java\npublic interface PDXTableListener {\n   void finish();\n\n   void header(DBTableHeader pdxTableHeader);\n\n   void record(List\u003cDBTableValue\u003e values);\n\n   void start(String filename);\n}\n```\n\nThe `record` method will be called once per record in the table file.\n\nSQL Output\n--------------\n\nVersions 1.6+ contain the class `PDXTableReaderSQLListenerImpl`, a class which produces `CREATE` and `INSERT` SQL.\n \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteverett%2Fparadoxreader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteverett%2Fparadoxreader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteverett%2Fparadoxreader/lists"}