/* * Copyright 2019 ScyllaDB */ /* * This file is part of Scylla. * * See the LICENSE.PROPRIETARY file in the top-level directory for licensing information. */ #pragma once #include #include #include "seastarx.hh" #include #include "service/storage_proxy.hh" #include "service/migration_manager.hh" namespace alternator { class executor { service::storage_proxy& _proxy; service::migration_manager& _mm; public: static constexpr auto ATTRS_COLUMN_NAME = "attrs"; static constexpr auto KEYSPACE_NAME = "alternator"; executor(service::storage_proxy& proxy, service::migration_manager& mm) : _proxy(proxy), _mm(mm) {} future create_table(std::string content); future describe_table(std::string content); future delete_table(std::string content); future put_item(std::string content); future get_item(std::string content); future update_item(std::string content); future list_tables(std::string content); future scan(std::string content); future describe_endpoints(std::string content, std::string host_header); future batch_write_item(std::string content); future<> start(); future<> stop() { return make_ready_future<>(); } }; }