Cassandra DB
Discover more about the Cassandra DB component and how to use it on the Digibee Integration Platform.
Cassandra DB performs operations on an Apache Cassandra database connection.
Parameters
Take a look at the configuration parameters of the component. Parameters supported by Double Braces expressions are marked with (DB)
.
Cassandra DB in Action
CQL (Cassandra Query Language), as the name implies, is the query language for Cassandra. It uses variables in its queries by wrapping them in Double Braces, like {{id}}. Read more in our article about Double Braces Functions.
Operation Insert
Input
Account: cassandra-acc
Operation: Insert
Connection String:
{{global.cassandra-url}}
Query:
INSERT INTO CUSTOMER (id, first_name) VALUES ({{ message.id }}, {{ message.name }});
Fail On Error: false
Output
Operation Update
Input
Account: cassandra-acc
Operation: Update
Connection String:
{{global.cassandra-url}}
Query:
UPDATE CUSTOMER SET first_name = {{ message.newName }} WHERE id = {{ message.id }};
Fail On Error: false
Output
Operation Select
Note: Databases such as Cassandra or AWS Keyspaces may automatically return paginated results if they have a significant number of registers. The Digibee Integration Platform handles this pagination automatically to consolidate the result at the output of the component as an atomic query. This means that no configuration or additional actions are required by the user to obtain these results.
Input
Account: cassandra-acc
Operation: Select
Connection String:
{{global.cassandra-url}}
Query:
SELECT * FROM CUSTOMER WHERE id = {{ message.if }};
Fail On Error: false
Output
Operation Delete
Input
Account: cassandra-acc
Operation: Delete
Connection String:
{{global.cassandra-url}}
Query:
DELETE FROM CUSTOMER WHERE id = {{ message.if }};
Fail On Error: false
Output
Last updated