Skip to content

Conversation

@michaellperry
Copy link
Contributor

@michaellperry michaellperry commented Jan 9, 2025

Fixes #109

Add a command-line tool for importing Factual or JSON export files into a Postgres fact store.

  • New Importer Tool: Add src/cli/importer.ts to implement the command-line tool for importing Factual or JSON export files into a Postgres fact store. The tool accepts connection parameters similar to psql, validates signatures, and merges facts into the store.
  • Package Script: Update package.json to include a new script for running the importer tool using npx. Change ts-node to use node against the compiled JavaScript.
  • Documentation: Update README.md to include instructions on how to use the command-line tool for importing files.

For more details, open the Copilot Workspace session.

Fixes #109

Add a command-line tool for importing Factual or JSON export files into a Postgres fact store.

* **New Importer Tool**: Add `src/cli/importer.ts` to implement the command-line tool for importing Factual or JSON export files into a Postgres fact store. The tool accepts connection parameters similar to `psql`, validates signatures, and merges facts into the store.
* **Package Script**: Update `package.json` to include a new script for running the importer tool using `npx`. Change `ts-node` to use `node` against the compiled JavaScript.
* **Documentation**: Update `README.md` to include instructions on how to use the command-line tool for importing files.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jinaga/jinaga-server/issues/109?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import facts into a Postgres fact store

1 participant