mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
update
Former-commit-id: c72896aebcabce77cb12c4912b75aa109468a225
This commit is contained in:
parent
f6564f6c3c
commit
d9076789d0
@ -19,6 +19,8 @@ namespace meta {
|
||||
public:
|
||||
MySQLMetaImpl(const DBMetaOptions& options_);
|
||||
|
||||
Status Initialize();
|
||||
|
||||
virtual Status CreateTable(TableSchema& table_schema) override;
|
||||
virtual Status DeleteTable(const std::string& table_id) override;
|
||||
virtual Status DescribeTable(TableSchema& group_info_) override;
|
||||
@ -69,7 +71,6 @@ namespace meta {
|
||||
std::string GetTablePath(const std::string& table_id);
|
||||
std::string GetTableDatePartitionPath(const std::string& table_id, DateT& date);
|
||||
void GetTableFilePath(TableFileSchema& group_file);
|
||||
Status Initialize();
|
||||
|
||||
const DBMetaOptions options_;
|
||||
}; // DBMetaImpl
|
||||
|
||||
@ -28,10 +28,13 @@ set(db_test_src
|
||||
${db_scheduler_srcs}
|
||||
${wrapper_src}
|
||||
${require_files}
|
||||
MySQLMetaImpl_test.cpp
|
||||
utils.cpp
|
||||
db_tests.cpp
|
||||
meta_tests.cpp)
|
||||
|
||||
include_directories(/usr/include/mysql)
|
||||
|
||||
cuda_add_executable(db_test ${db_test_src})
|
||||
|
||||
set(db_libs
|
||||
@ -44,4 +47,4 @@ set(db_libs
|
||||
lz4
|
||||
)
|
||||
|
||||
target_link_libraries(db_test ${db_libs} ${unittest_libs})
|
||||
target_link_libraries(db_test ${db_libs} ${unittest_libs} /usr/local/lib/libmysqlpp.so)
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <chrono>
|
||||
#include <src/db/MySQLMetaImpl.h>
|
||||
|
||||
#include "db/DB.h"
|
||||
#include "db/DBMetaImpl.h"
|
||||
@ -55,3 +56,8 @@ protected:
|
||||
virtual void SetUp() override;
|
||||
virtual void TearDown() override;
|
||||
};
|
||||
|
||||
class MySQLTest : public DBTest {
|
||||
protected:
|
||||
//std::shared_ptr<zilliz::milvus::engine::meta::MySQLMetaImpl> impl_;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user