mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-03 16:56:45 +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);
|
|
};
|