StorageUtils
A trait that provides utility methods for storage operations.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Creates a new instance of a Cassandra batch statement.
Creates a new instance of a Cassandra batch statement.
Value parameters
- statements
-
the list of statements to include in the batch
Attributes
- Returns
-
a new instance of SimpleStatement representing a batch statement
Creates a new instance of a Cassandra CQL statement.
Creates a new instance of a Cassandra CQL statement.
Value parameters
- query
-
the CQL query string
- values
-
the values to bind to the query
Attributes
- Returns
-
a new instance of SimpleStatement
Executes an operation with error handling.
Executes an operation with error handling.
Type parameters
- F
-
the Async effect type
- T
-
the return type of the operation
Value parameters
- operation
-
the operation to execute which may throw an exception
Attributes
- Returns
-
the result of the operation or a DatabaseError encapsulated in the
F
effect if an exception is thrown