text: //
  //  basic_db.cc
  //  YCSB-C
  //
  //  Created by Jinglei Ren on 12/17/14.
  //  Copyright (c) 2014 Jinglei Ren <jinglei@ren.systems>.
  //
  
  #include "db/db_factory.h"
  
  #include <string>
  #include "db/basic_db.h"
  #include "db/db_sl.h"
  
  using namespace std;
  using ycsbc::DB;
  using ycsbc::DBFactory;
  
  DB* DBFactory::CreateDB(utils::Properties &props) {
    if (props["dbname"] == "basic") {
      return new BasicDB;
    } else if (props["dbname"] == "sqlite") {
      return new ycsbc::SQLiteDB;
    } else return NULL;
  }
  
  