Data Store
The Data Store is a key/value store that is used for temporary storage of data. It is especially useful in migrations or situations where you need to store data somewhere that gets used in a subsequent Flow.
Platform Settings
Internal
This stores data inside the Ziggy database. It is intended for scenarios where the total number of keys stores is in the hundreds of thousands. When this gets too large, the performance will slow down.
AWS
This uses AWS DynamoDB to store data. As a result, it is infinitely scalable and can contain any number of keys. When running Ziggy Solo, you will need to configure the following environment variables.
DATA_STORE_AWS_REGION=your_aws_region
DATA_STORE_AWS_ACCESS_KEY=your_access_key
DATA_STORE_AWS_SECRET=your_secret
Azure
We will shortly be adding support for CosmosDB for anyone running Ziggy Solo on Azure.
Name and Key
The data store is a Key/Value store but it also provides an additional field name
so you can create a namespace for your data.
The combination of name + key
must be unique within the store.
Data Store Block
The Data Store Block gives you access to Data Store operations without the need to write any Javascript code.
Javascript API
You can also perform Data Store operations from the Javascript Block. The following methods are available.
Important: all methods are asynchronous.
Method | Description |
---|---|
| Retrieve keys using
|
| Retrieve all keys within the specified namespace.
|
| Retrieve the specified key within the specified namespace.
|
| Insert a new key into the specified namespace. Will error isf the namespace+key combination already exists.
|
| Insert a new key into the specified namespace if it doesn't exist, update if it does.
|
| Update a key/value pair in the specified namespace.
|
| delete a key/value pair in the specified namespace.
|
Data Store browser
You can browse and search for data in the Data Store using the Store Browser. This works for Internal mode only.