https://github.com/n-octo-n/n8n-nodes-json-database
This n8n node lets you easily and efficiently use JSON files as persistent, hierarchical key-value databases/stores.
https://github.com/n-octo-n/n8n-nodes-json-database
database hierarchical json key-value kv n8n n8n-community-node-package n8n-node n8n-nodes nodejs on-disk permanent persistent storage store tree
Last synced: about 1 month ago
JSON representation
This n8n node lets you easily and efficiently use JSON files as persistent, hierarchical key-value databases/stores.
- Host: GitHub
- URL: https://github.com/n-octo-n/n8n-nodes-json-database
- Owner: n-octo-n
- License: mit
- Created: 2023-08-27T16:56:16.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-31T16:09:00.000Z (over 1 year ago)
- Last Synced: 2024-10-11T16:51:46.913Z (8 months ago)
- Topics: database, hierarchical, json, key-value, kv, n8n, n8n-community-node-package, n8n-node, n8n-nodes, nodejs, on-disk, permanent, persistent, storage, store, tree
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@n-octo-n/n8n-nodes-json-database
- Size: 20.5 KB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# n8n-nodes-json-database
This is an n8n node lets you easily and efficiently use JSON files as persistent, hierarchical key-value databases/stores.
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
[Installation](#installation)
[Compatibility](#compatibility)
[Usage](#usage)[Resources](#resources)
## Installation
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation. The npm name for this package is `@n-octo-n/n8n-nodes-json-database`.
## Compatibility
Tested on n8n `1.4.0` as of 2023/08/31.
## Usage
Operations:
* Read From Database
* Write To DatabaseCommon Parameters:
* **Query Path** (optional): The path on which to act on in the JSON tree. Supports the standard JavaScript dot-and-bracket property access notation. Leaving the field empty will make the node act on the root of the JSON tree.
* **File Path** (optional): The system path to the JSON file in which to read/write the data. Leaving the field empty, if everything goes well, will make the node use the default global database (which should be located in `~/.n8n/JsonDatabase.Global.json`).Write-specific parameters:
* **Data Source** (required): only one of the following options:
* **Source Object Key** (required): An object key from the current input context (as set by immediately preceding nodes) to read data from. For example, the name of a property specified via a Set node, placed immediately before the JSON Database node.
* **Source JSON String** (optional): Any JSON string that can be parsed and evaluated as an object in JavaScript. Leaving the field empty will interally force the value to be considered `undefined`, and will thus simply delete the destination branch in the JSON tree.## Resources
* [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
* [JSON Documentation](https://www.json.org/)
* [JSON in JavaScript | MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON)
* [Accessing properties of Objects in JavaScript | MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects#accessing_properties)