Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
Types.hpp
1#pragma once
2
3#include <cstdint>
4#include <expected>
5#include <string>
6#include <utility>
7
8namespace data::cassandra {
9namespace impl {
10
11struct Settings;
12class Session;
13class Cluster;
14struct Future;
16struct Result;
17class Statement;
19struct Batch;
20
21} // namespace impl
22
23using Settings = impl::Settings;
24using Future = impl::Future;
25using FutureWithCallback = impl::FutureWithCallback;
26using Result = impl::Result;
27using Statement = impl::Statement;
28using PreparedStatement = impl::PreparedStatement;
29using Batch = impl::Batch;
30
38struct Limit {
39 int32_t limit;
40};
41
49struct Text {
50 std::string text;
51
57 explicit Text(std::string text) : text{std::move(text)}
58 {
59 }
60};
61
62class Handle;
63class CassandraError;
64
65using MaybeError = std::expected<void, CassandraError>;
66using ResultOrError = std::expected<Result, CassandraError>;
67using Error = std::unexpected<CassandraError>;
68
69} // namespace data::cassandra
Definition Cluster.hpp:129
Represents a prepared statement on the DB side.
Definition Statement.hpp:159
Definition Session.hpp:9
Definition Statement.hpp:28
This namespace implements a wrapper for the Cassandra C++ driver.
Definition CassandraBackendFamily.hpp:47
A strong type wrapper for int32_t.
Definition Types.hpp:38
Text(std::string text)
Construct a new Text object from string type.
Definition Types.hpp:57
Definition Batch.hpp:12
Definition Future.hpp:13
Definition Result.hpp:101
Bundles all cassandra settings in one place.
Definition Cluster.hpp:37