6 #ifndef KNOWROB_MONGO_DATABASE_H
7 #define KNOWROB_MONGO_DATABASE_H
21 Database(mongoc_client_pool_t *pool, std::string_view db_name);
24 mongoc_database_t*
db() {
return db_; }
26 bool create_index(
const char *coll_name,
const std::vector<IndexKey> &indexes);
29 mongoc_client_pool_t *pool_;
30 mongoc_client_t *client_;
31 mongoc_database_t *db_;
Database(mongoc_client_pool_t *pool, std::string_view db_name)
bool create_index(const char *coll_name, const std::vector< IndexKey > &indexes)