mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
21 lines
648 B
C++
21 lines
648 B
C++
#pragma once
|
|
|
|
#include "migration/cassandra/CassandraMigrationTestBackend.hpp"
|
|
#include "util/config/ObjectView.hpp"
|
|
|
|
#include <memory>
|
|
|
|
/**
|
|
* @brief Example migrator for dropping the table. In this example, our migrator will drop the
|
|
* table. The table removal is not reversible.
|
|
*/
|
|
struct ExampleDropTableMigrator {
|
|
using Backend = CassandraMigrationTestBackend;
|
|
|
|
static constexpr char const* kNAME = "ExampleDropTableMigrator";
|
|
static constexpr char const* kDESCRIPTION = "The migrator for dropping the table";
|
|
|
|
static void
|
|
runMigration(std::shared_ptr<Backend> const& backend, util::config::ObjectView const& config);
|
|
};
|