mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
6198e6f5c5
git-svn-id: file:///svn/tokudb@1316 c7de825b-a66e-492c-adef-691d508d4ae1
15 lines
405 B
C++
15 lines
405 B
C++
#include <db_cxx.h>
|
|
|
|
int Dbc::close (void) {
|
|
DBC *dbc = this;
|
|
int ret = dbc->c_close(dbc);
|
|
DbEnv *env = (DbEnv*)dbc->dbp->api_internal;
|
|
return env->maybe_throw_error(ret);
|
|
}
|
|
|
|
int Dbc::get(Dbt* key, Dbt *data, u_int32_t flags) {
|
|
DBC *dbc = this;
|
|
int ret = dbc->c_get(dbc, key, data, flags);
|
|
DbEnv *env = (DbEnv*)dbc->dbp->api_internal;
|
|
return env->maybe_throw_error(ret);
|
|
}
|