DBFactory.cpp 980 字节
Newer Older
S
starlord 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
////////////////////////////////////////////////////////////////////////////////
// Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
// Unauthorized copying of this file, via any medium is strictly prohibited.
// Proprietary and confidential.
////////////////////////////////////////////////////////////////////////////////

#include "DBFactory.h"
#include "DBImpl.h"
#include "Exception.h"
#include "meta/MetaFactory.h"
#include "meta/SqliteMetaImpl.h"
#include "meta/MySQLMetaImpl.h"

#include <stdlib.h>
#include <time.h>
#include <sstream>
#include <cstdlib>
#include <string>

namespace zilliz {
namespace milvus {
namespace engine {

Options DBFactory::BuildOption() {
    auto meta = MetaFactory::BuildOption();
    Options options;
    options.meta = meta;
    return options;
}

DBPtr DBFactory::Build(const Options& options) {
    return std::make_shared<DBImpl>(options);
}

} // namespace engine
} // namespace milvus
} // namespace zilliz