Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
migration::cassandra::impl::CassandraMigrationSchema Class Reference

The schema for the migration process. It contains the prepared statements only used for the migration process. More...

#include <CassandraMigrationSchema.hpp>

Public Member Functions

 CassandraMigrationSchema (SettingsProviderType const &settings)
 Construct a new Cassandra Migration Schema object.
 
data::cassandra::PreparedStatement getPreparedFullScanStatement (data::cassandra::Handle const &handler, std::string const &tableName, std::string const &key)
 Get the prepared statement for the full scan of a table.
 
data::cassandra::PreparedStatement const & getPreparedInsertMigratedMigrator (data::cassandra::Handle const &handler)
 Get the prepared statement for insertion of migrator_status table.
 

Detailed Description

The schema for the migration process. It contains the prepared statements only used for the migration process.

Constructor & Destructor Documentation

◆ CassandraMigrationSchema()

migration::cassandra::impl::CassandraMigrationSchema::CassandraMigrationSchema ( SettingsProviderType const & settings)
inlineexplicit

Construct a new Cassandra Migration Schema object.

Parameters
settingsThe settings provider of database

Member Function Documentation

◆ getPreparedFullScanStatement()

data::cassandra::PreparedStatement migration::cassandra::impl::CassandraMigrationSchema::getPreparedFullScanStatement ( data::cassandra::Handle const & handler,
std::string const & tableName,
std::string const & key )
inline

Get the prepared statement for the full scan of a table.

Parameters
handlerThe database handler
tableNameThe name of the table
keyThe partition key of the table
Returns
The prepared statement

◆ getPreparedInsertMigratedMigrator()

data::cassandra::PreparedStatement const & migration::cassandra::impl::CassandraMigrationSchema::getPreparedInsertMigratedMigrator ( data::cassandra::Handle const & handler)
inline

Get the prepared statement for insertion of migrator_status table.

Parameters
handlerThe database handler
Returns
The prepared statement to insert into migrator_status table

The documentation for this class was generated from the following file: