19 #include <arrow/table.h>
22 namespace EmbeddedDatabase {
43 std::shared_ptr<Cursor>
executeDML(
const std::string& query);
44 std::shared_ptr<Cursor>
executeRA(
const std::string& query);
46 std::shared_ptr<arrow::Table>& table,
47 uint64_t fragment_size = 0);
48 static std::shared_ptr<DBEngine>
create(
const std::string& cmd_line);
50 std::vector<ColumnDetails>
getTableDetails(
const std::string& table_name);
52 bool login(std::string& db_name, std::string& user_name,
const std::string& password);
DBEngine & operator=(const DBEngine &)=delete
void importArrowTable(const std::string &name, std::shared_ptr< arrow::Table > &table, uint64_t fragment_size=0)
bool setDatabase(std::string &db_name)
std::vector< ColumnDetails > getTableDetails(const std::string &table_name)
std::shared_ptr< Cursor > executeDML(const std::string &query)
std::shared_ptr< arrow::RecordBatch > getArrowRecordBatch()
Cursor & operator=(const Cursor &)=delete
std::vector< std::string > getTables()
static std::shared_ptr< DBEngine > create(const std::string &cmd_line)
bool login(std::string &db_name, std::string &user_name, const std::string &password)
ColumnType getColType(uint32_t col_num)
void executeDDL(const std::string &query)
std::shared_ptr< Cursor > executeRA(const std::string &query)