db_impl.cpp 609 字节
Newer Older
X
Xu Peng 已提交
1 2
#include <assert.h>
#include "db_impl.h"
X
Xu Peng 已提交
3 4 5

namespace vecengine {

X
Xu Peng 已提交
6
DBImpl::DBImpl(const Options& options_, const std::string& name_)
X
Xu Peng 已提交
7 8 9 10 11
    : _dbname(name_),
      _env(options_.env),
      _options(options_) {
}

X
Xu Peng 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Status DBImpl::add_group(const GroupOptions& options_,
        const std::string& group_id_,
        std::string& gid_) {
    assert((!options_.has_id) ||
            (options_.has_id && ("" != group_id_)));

}

/*
 *  DB
 */

DB::~DB() {}

DB* DB::Open(const Options& options_, const std::string& name_) {
    DBImpl* impl = new DBImpl(options_, name_);
    return impl;
}

X
Xu Peng 已提交
31
} // namespace vecengine