Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

python/_rpmdb.c File Reference

More...

#include <Python.h>
#include <stddef.h>
#include <db.h>

Go to the source code of this file.

Data Structures

struct  behaviourFlags
struct  DBEnvObject
struct  DBObject
struct  DBCursorObject
struct  DBTxnObject
struct  DBLockObject

Defines

#define DBVER   (DB_VERSION_MAJOR * 10 + DB_VERSION_MINOR)
#define PY_BSDDB_VERSION   "4.2.4"
#define MYDB_BEGIN_ALLOW_THREADS
#define MYDB_END_ALLOW_THREADS
#define MYDB_BEGIN_BLOCK_THREADS
#define MYDB_END_BLOCK_THREADS
#define INCOMPLETE_IS_WARNING   1
#define DEFAULT_GET_RETURNS_NONE   1
#define DEFAULT_CURSOR_SET_RETURNS_NONE   1 /* 0 in pybsddb < 4.2, python < 2.4 */
#define DBObject_Check(v)   ((v)->ob_type == &DB_Type)
#define DBCursorObject_Check(v)   ((v)->ob_type == &DBCursor_Type)
#define DBEnvObject_Check(v)   ((v)->ob_type == &DBEnv_Type)
#define DBTxnObject_Check(v)   ((v)->ob_type == &DBTxn_Type)
#define DBLockObject_Check(v)   ((v)->ob_type == &DBLock_Type)
#define RETURN_IF_ERR()
#define RETURN_NONE()   Py_INCREF(Py_None); return Py_None;
#define _CHECK_OBJECT_NOT_CLOSED(nonNull, pyErrObj, name)
#define CHECK_DB_NOT_CLOSED(dbobj)   _CHECK_OBJECT_NOT_CLOSED(dbobj->db, DBError, DB)
#define CHECK_ENV_NOT_CLOSED(env)   _CHECK_OBJECT_NOT_CLOSED(env->db_env, DBError, DBEnv)
#define CHECK_CURSOR_NOT_CLOSED(curs)   _CHECK_OBJECT_NOT_CLOSED(curs->dbc, DBCursorClosedError, DBCursor)
#define CHECK_DBFLAG(mydb, flag)
#define CLEAR_DBT(dbt)   (memset(&(dbt), 0, sizeof(dbt)))
#define FREE_DBT(dbt)
#define MAKE_HASH_ENTRY(name)   _addIntToDict(d, #name, ((DB_HASH_STAT*)sp)->hash_##name)
#define MAKE_BT_ENTRY(name)   _addIntToDict(d, #name, ((DB_BTREE_STAT*)sp)->bt_##name)
#define MAKE_QUEUE_ENTRY(name)   _addIntToDict(d, #name, ((DB_QUEUE_STAT*)sp)->qs_##name)
#define _KEYS_LIST   1
#define _VALUES_LIST   2
#define _ITEMS_LIST   3
#define MAKE_ENTRY(name)   _addIntToDict(d, #name, sp->st_##name)
#define MAKE_ENTRY(name)   _addIntToDict(d, #name, sp->st_##name)
#define ADD_INT(dict, NAME)   _addIntToDict(dict, #NAME, NAME)
#define MODULE_NAME_MAX_LEN   11
#define MAKE_EX(name)

Functions

int makeDBError (int err)
int _DB_get_type (DBObject *self)
int make_dbt (PyObject *obj, DBT *dbt)
int make_key_dbt (DBObject *self, PyObject *keyobj, DBT *key, int *pflags)
int add_partial_dbt (DBT *d, int dlen, int doff)
void _db_errorCallback (const char *prefix, char *msg)
void makeTypeError (char *expected, PyObject *found)
int checkTxnObj (PyObject *txnobj, DB_TXN **txn)
int _DB_delete (DBObject *self, DB_TXN *txn, DBT *key, int flags)
int _DB_put (DBObject *self, DB_TXN *txn, DBT *key, DBT *data, int flags)
PyObject * _DBCursor_get (DBCursorObject *self, int extra_flags, PyObject *args, PyObject *kwargs, char *format)
void _addIntToDict (PyObject *dict, char *name, int value)
DBObjectnewDBObject (DBEnvObject *arg, int flags)
void DB_dealloc (DBObject *self)
DBCursorObjectnewDBCursorObject (DBC *dbc, DBObject *db)
void DBCursor_dealloc (DBCursorObject *self)
DBEnvObjectnewDBEnvObject (int flags)
void DBEnv_dealloc (DBEnvObject *self)
DBTxnObjectnewDBTxnObject (DBEnvObject *myenv, DB_TXN *parent, int flags)
void DBTxn_dealloc (DBTxnObject *self)
DBLockObjectnewDBLockObject (DBEnvObject *myenv, u_int32_t locker, DBT *obj, db_lockmode_t lock_mode, int flags)
void DBLock_dealloc (DBLockObject *self)
PyObject * DB_append (DBObject *self, PyObject *args)
PyObject * DB_close (DBObject *self, PyObject *args)
PyObject * DB_cursor (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_delete (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_fd (DBObject *self, PyObject *args)
PyObject * DB_get (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_get_size (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_get_both (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_get_byteswapped (DBObject *self, PyObject *args)
PyObject * DB_get_type (DBObject *self, PyObject *args)
PyObject * DB_join (DBObject *self, PyObject *args)
PyObject * DB_key_range (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_open (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_put (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_remove (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_rename (DBObject *self, PyObject *args)
PyObject * DB_set_bt_minkey (DBObject *self, PyObject *args)
PyObject * DB_set_cachesize (DBObject *self, PyObject *args)
PyObject * DB_set_flags (DBObject *self, PyObject *args)
PyObject * DB_set_h_ffactor (DBObject *self, PyObject *args)
PyObject * DB_set_h_nelem (DBObject *self, PyObject *args)
PyObject * DB_set_lorder (DBObject *self, PyObject *args)
PyObject * DB_set_pagesize (DBObject *self, PyObject *args)
PyObject * DB_set_re_delim (DBObject *self, PyObject *args)
PyObject * DB_set_re_len (DBObject *self, PyObject *args)
PyObject * DB_set_re_pad (DBObject *self, PyObject *args)
PyObject * DB_set_re_source (DBObject *self, PyObject *args)
PyObject * DB_stat (DBObject *self, PyObject *args)
PyObject * DB_sync (DBObject *self, PyObject *args)
PyObject * DB_upgrade (DBObject *self, PyObject *args)
PyObject * DB_verify (DBObject *self, PyObject *args, PyObject *kwargs)
PyObject * DB_set_get_returns_none (DBObject *self, PyObject *args)
int DB_length (DBObject *self)
PyObject * DB_subscript (DBObject *self, PyObject *keyobj)
int DB_ass_sub (DBObject *self, PyObject *keyobj, PyObject *dataobj)
PyObject * DB_has_key (DBObject *self, PyObject *args)
PyObject * _DB_make_list (DBObject *self, DB_TXN *txn, int type)
PyObject * DB_keys (DBObject *self, PyObject *args)
PyObject * DB_items (DBObject *self, PyObject *args)
PyObject * DB_values (DBObject *self, PyObject *args)
PyObject * DBC_close (DBCursorObject *self, PyObject *args)
PyObject * DBC_count (DBCursorObject *self, PyObject *args)
PyObject * DBC_current (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_delete (DBCursorObject *self, PyObject *args)
PyObject * DBC_dup (DBCursorObject *self, PyObject *args)
PyObject * DBC_first (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_get (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_get_recno (DBCursorObject *self, PyObject *args)
PyObject * DBC_last (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_next (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_prev (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_put (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_set (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_set_range (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * _DBC_get_set_both (DBCursorObject *self, PyObject *keyobj, PyObject *dataobj, int flags, unsigned int returnsNone)
PyObject * DBC_get_both (DBCursorObject *self, PyObject *args)
PyObject * DBC_get_current_size (DBCursorObject *self, PyObject *args)
PyObject * DBC_set_both (DBCursorObject *self, PyObject *args)
PyObject * DBC_set_recno (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_consume (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_next_dup (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_next_nodup (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_prev_nodup (DBCursorObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBC_join_item (DBCursorObject *self, PyObject *args)
PyObject * DBEnv_close (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_open (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_remove (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_shm_key (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_cachesize (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_data_dir (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_lg_bsize (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_lg_dir (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_lg_max (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_lk_detect (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_lk_max (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_mp_mmapsize (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_tmp_dir (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_txn_begin (DBEnvObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBEnv_txn_checkpoint (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_tx_max (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_lock_detect (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_lock_get (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_lock_id (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_lock_put (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_lock_stat (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_log_archive (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_txn_stat (DBEnvObject *self, PyObject *args)
PyObject * DBEnv_set_get_returns_none (DBEnvObject *self, PyObject *args)
PyObject * DBTxn_commit (DBTxnObject *self, PyObject *args)
PyObject * DBTxn_prepare (DBTxnObject *self, PyObject *args)
PyObject * DBTxn_abort (DBTxnObject *self, PyObject *args)
PyObject * DBTxn_id (DBTxnObject *self, PyObject *args)
PyObject * DB_getattr (DBObject *self, char *name)
PyObject * DBEnv_getattr (DBEnvObject *self, char *name)
PyObject * DBCursor_getattr (DBCursorObject *self, char *name)
PyObject * DBTxn_getattr (DBTxnObject *self, char *name)
PyObject * DBLock_getattr (DBLockObject *self, char *name)
PyObject * DB_construct (PyObject *self, PyObject *args, PyObject *kwargs)
PyObject * DBEnv_construct (PyObject *self, PyObject *args)
PyObject * bsddb_version (PyObject *self, PyObject *args)
 DL_EXPORT (void)

Variables

char * rcs_id = "$Id: _rpmdb.c,v 1.12 2004/01/01 16:34:10 jbj Exp $"
PyObject * DBError
PyObject * DBCursorClosedError
PyObject * DBKeyEmptyError
PyObject * DBKeyExistError
PyObject * DBLockDeadlockError
PyObject * DBLockNotGrantedError
PyObject * DBNotFoundError
PyObject * DBOldVersionError
PyObject * DBRunRecoveryError
PyObject * DBVerifyBadError
PyObject * DBNoServerError
PyObject * DBNoServerHomeError
PyObject * DBNoServerIDError
PyObject * DBInvalidArgError
PyObject * DBAccessError
PyObject * DBNoSpaceError
PyObject * DBNoMemoryError
PyObject * DBAgainError
PyObject * DBBusyError
PyObject * DBFileExistsError
PyObject * DBNoSuchFileError
PyObject * DBPermissionsError
staticforward PyTypeObject DB_Type
staticforward PyTypeObject DBCursor_Type
staticforward PyTypeObject DBEnv_Type
staticforward PyTypeObject DBTxn_Type
staticforward PyTypeObject DBLock_Type
char _db_errmsg [1024]
PyMethodDef DB_methods []
PyMappingMethods DB_mapping
PyMethodDef DBCursor_methods []
PyMethodDef DBEnv_methods []
PyMethodDef DBTxn_methods []
char bsddb_version_doc []
PyMethodDef bsddb_methods []
char _bsddbModuleName [11+1] = "_bsddb"


Detailed Description

Definition in file _rpmdb.c.


Define Documentation

#define _CHECK_OBJECT_NOT_CLOSED nonNull,
pyErrObj,
name   ) 
 

Value:

if ((nonNull) == NULL) {          \
        PyObject *errTuple = NULL;    \
        errTuple = Py_BuildValue("(is)", 0, #name " object has been closed"); \
        PyErr_SetObject((pyErrObj), errTuple);  \
        Py_DECREF(errTuple);          \
        return NULL;                  \
    }

Definition at line 280 of file _rpmdb.c.

#define _ITEMS_LIST   3
 

Definition at line 2409 of file _rpmdb.c.

Referenced by _DB_make_list(), and DB_items().

#define _KEYS_LIST   1
 

Definition at line 2407 of file _rpmdb.c.

Referenced by _DB_make_list(), and DB_keys().

#define _VALUES_LIST   2
 

Definition at line 2408 of file _rpmdb.c.

Referenced by _DB_make_list(), and DB_values().

#define ADD_INT dict,
NAME   )     _addIntToDict(dict, #NAME, NAME)
 

Definition at line 4424 of file _rpmdb.c.

Referenced by DL_EXPORT().

#define CHECK_CURSOR_NOT_CLOSED curs   )     _CHECK_OBJECT_NOT_CLOSED(curs->dbc, DBCursorClosedError, DBCursor)
 

Definition at line 295 of file _rpmdb.c.

Referenced by _DBCursor_get(), DBC_count(), DBC_delete(), DBC_dup(), DBC_get(), DBC_get_both(), DBC_get_current_size(), DBC_get_recno(), DBC_join_item(), DBC_put(), DBC_set(), DBC_set_both(), DBC_set_range(), and DBC_set_recno().

#define CHECK_DB_NOT_CLOSED dbobj   )     _CHECK_OBJECT_NOT_CLOSED(dbobj->db, DBError, DB)
 

Definition at line 289 of file _rpmdb.c.

Referenced by _DB_make_list(), DB_append(), DB_cursor(), DB_delete(), DB_fd(), DB_get(), DB_get_both(), DB_get_byteswapped(), DB_get_size(), DB_get_type(), DB_has_key(), DB_join(), DB_key_range(), DB_put(), DB_remove(), DB_rename(), DB_set_bt_minkey(), DB_set_cachesize(), DB_set_flags(), DB_set_get_returns_none(), DB_set_h_ffactor(), DB_set_h_nelem(), DB_set_lorder(), DB_set_pagesize(), DB_set_re_delim(), DB_set_re_len(), DB_set_re_pad(), DB_set_re_source(), DB_stat(), DB_subscript(), DB_sync(), DB_upgrade(), and DB_verify().

#define CHECK_DBFLAG mydb,
flag   ) 
 

Value:

(((mydb)->flags & (flag)) || \
                                     (((mydb)->myenvobj != NULL) && ((mydb)->myenvobj->flags & (flag))))

Definition at line 299 of file _rpmdb.c.

Referenced by _DB_make_list(), _DBCursor_get(), DB_get(), DB_get_both(), DB_subscript(), DBC_get(), DBC_get_recno(), DBC_join_item(), DBC_set(), DBC_set_range(), and DBC_set_recno().

#define CHECK_ENV_NOT_CLOSED env   )     _CHECK_OBJECT_NOT_CLOSED(env->db_env, DBError, DBEnv)
 

Definition at line 292 of file _rpmdb.c.

Referenced by DB_close(), DBEnv_getattr(), DBEnv_lock_detect(), DBEnv_lock_id(), DBEnv_lock_put(), DBEnv_lock_stat(), DBEnv_log_archive(), DBEnv_open(), DBEnv_remove(), DBEnv_set_cachesize(), DBEnv_set_data_dir(), DBEnv_set_get_returns_none(), DBEnv_set_lg_bsize(), DBEnv_set_lg_dir(), DBEnv_set_lg_max(), DBEnv_set_lk_detect(), DBEnv_set_lk_max(), DBEnv_set_mp_mmapsize(), DBEnv_set_shm_key(), DBEnv_set_tmp_dir(), DBEnv_set_tx_max(), DBEnv_txn_begin(), DBEnv_txn_checkpoint(), and DBEnv_txn_stat().

#define CLEAR_DBT dbt   )     (memset(&(dbt), 0, sizeof(dbt)))
 

Definition at line 302 of file _rpmdb.c.

Referenced by _DB_make_list(), _DBCursor_get(), DB_append(), DB_get(), DB_get_size(), DB_has_key(), DB_subscript(), DBC_get(), DBC_get_current_size(), DBC_get_recno(), DBC_join_item(), DBC_set(), DBC_set_range(), DBC_set_recno(), make_dbt(), and make_key_dbt().

#define DBCursorObject_Check  )     ((v)->ob_type == &DBCursor_Type)
 

Definition at line 264 of file _rpmdb.c.

Referenced by DB_join().

#define DBEnvObject_Check  )     ((v)->ob_type == &DBEnv_Type)
 

Definition at line 265 of file _rpmdb.c.

Referenced by DB_construct().

#define DBLockObject_Check  )     ((v)->ob_type == &DBLock_Type)
 

Definition at line 267 of file _rpmdb.c.

#define DBObject_Check  )     ((v)->ob_type == &DB_Type)
 

Definition at line 263 of file _rpmdb.c.

#define DBTxnObject_Check  )     ((v)->ob_type == &DBTxn_Type)
 

Definition at line 266 of file _rpmdb.c.

Referenced by checkTxnObj().

#define DBVER   (DB_VERSION_MAJOR * 10 + DB_VERSION_MINOR)
 

Definition at line 99 of file _rpmdb.c.

#define DEFAULT_CURSOR_SET_RETURNS_NONE   1 /* 0 in pybsddb < 4.2, python < 2.4 */
 

Definition at line 211 of file _rpmdb.c.

Referenced by newDBEnvObject(), and newDBObject().

#define DEFAULT_GET_RETURNS_NONE   1
 

Definition at line 210 of file _rpmdb.c.

Referenced by newDBEnvObject(), and newDBObject().

#define FREE_DBT dbt   ) 
 

Value:

if ((dbt.flags & (DB_DBT_MALLOC|DB_DBT_REALLOC)) && \
                                         dbt.data != NULL) { free(dbt.data); }

Definition at line 304 of file _rpmdb.c.

Referenced by _DB_make_list(), _DBC_get_set_both(), _DBCursor_get(), DB_ass_sub(), DB_delete(), DB_get(), DB_get_both(), DB_get_size(), DB_has_key(), DB_put(), DB_subscript(), DBC_get(), DBC_get_current_size(), DBC_get_recno(), DBC_join_item(), DBC_put(), DBC_set(), DBC_set_range(), and DBC_set_recno().

#define INCOMPLETE_IS_WARNING   1
 

Definition at line 153 of file _rpmdb.c.

#define MAKE_BT_ENTRY name   )     _addIntToDict(d, #name, ((DB_BTREE_STAT*)sp)->bt_##name)
 

Referenced by DB_stat().

#define MAKE_ENTRY name   )     _addIntToDict(d, #name, sp->st_##name)
 

#define MAKE_ENTRY name   )     _addIntToDict(d, #name, sp->st_##name)
 

Referenced by DBEnv_lock_stat(), and DBEnv_txn_stat().

#define MAKE_EX name   ) 
 

Value:

name = PyErr_NewException("bsddb._db." #name, DBError, NULL); \
                        PyDict_SetItemString(d, #name, name)

Referenced by DL_EXPORT().

#define MAKE_HASH_ENTRY name   )     _addIntToDict(d, #name, ((DB_HASH_STAT*)sp)->hash_##name)
 

Referenced by DB_stat().

#define MAKE_QUEUE_ENTRY name   )     _addIntToDict(d, #name, ((DB_QUEUE_STAT*)sp)->qs_##name)
 

Referenced by DB_stat().

#define MODULE_NAME_MAX_LEN   11
 

Definition at line 4426 of file _rpmdb.c.

#define MYDB_BEGIN_ALLOW_THREADS
 

Definition at line 145 of file _rpmdb.c.

Referenced by _DB_delete(), _DB_make_list(), _DB_put(), _DBC_get_set_both(), _DBCursor_get(), DB_cursor(), DB_dealloc(), DB_fd(), DB_get(), DB_get_both(), DB_get_byteswapped(), DB_get_size(), DB_get_type(), DB_has_key(), DB_join(), DB_key_range(), DB_length(), DB_open(), DB_rename(), DB_set_bt_minkey(), DB_set_cachesize(), DB_set_flags(), DB_set_h_ffactor(), DB_set_h_nelem(), DB_set_lorder(), DB_set_pagesize(), DB_set_re_delim(), DB_set_re_len(), DB_set_re_pad(), DB_set_re_source(), DB_stat(), DB_subscript(), DB_sync(), DB_upgrade(), DB_verify(), DBC_close(), DBC_count(), DBC_delete(), DBC_dup(), DBC_get(), DBC_get_current_size(), DBC_get_recno(), DBC_join_item(), DBC_put(), DBC_set(), DBC_set_range(), DBC_set_recno(), DBCursor_dealloc(), DBEnv_close(), DBEnv_dealloc(), DBEnv_lock_detect(), DBEnv_lock_id(), DBEnv_lock_put(), DBEnv_lock_stat(), DBEnv_log_archive(), DBEnv_open(), DBEnv_remove(), DBEnv_set_cachesize(), DBEnv_set_data_dir(), DBEnv_set_lg_bsize(), DBEnv_set_lg_dir(), DBEnv_set_lg_max(), DBEnv_set_lk_detect(), DBEnv_set_lk_max(), DBEnv_set_mp_mmapsize(), DBEnv_set_tmp_dir(), DBEnv_set_tx_max(), DBEnv_txn_checkpoint(), DBEnv_txn_stat(), DBTxn_abort(), DBTxn_commit(), DBTxn_id(), DBTxn_prepare(), newDBEnvObject(), newDBLockObject(), newDBObject(), and newDBTxnObject().

#define MYDB_BEGIN_BLOCK_THREADS
 

Definition at line 147 of file _rpmdb.c.

#define MYDB_END_ALLOW_THREADS
 

Definition at line 146 of file _rpmdb.c.

Referenced by _DB_delete(), _DB_make_list(), _DB_put(), _DBC_get_set_both(), _DBCursor_get(), DB_cursor(), DB_dealloc(), DB_fd(), DB_get(), DB_get_both(), DB_get_byteswapped(), DB_get_size(), DB_get_type(), DB_has_key(), DB_join(), DB_key_range(), DB_length(), DB_open(), DB_rename(), DB_set_bt_minkey(), DB_set_cachesize(), DB_set_flags(), DB_set_h_ffactor(), DB_set_h_nelem(), DB_set_lorder(), DB_set_pagesize(), DB_set_re_delim(), DB_set_re_len(), DB_set_re_pad(), DB_set_re_source(), DB_stat(), DB_subscript(), DB_sync(), DB_upgrade(), DB_verify(), DBC_close(), DBC_count(), DBC_delete(), DBC_dup(), DBC_get(), DBC_get_current_size(), DBC_get_recno(), DBC_join_item(), DBC_put(), DBC_set(), DBC_set_range(), DBC_set_recno(), DBCursor_dealloc(), DBEnv_close(), DBEnv_dealloc(), DBEnv_lock_detect(), DBEnv_lock_id(), DBEnv_lock_put(), DBEnv_lock_stat(), DBEnv_log_archive(), DBEnv_open(), DBEnv_remove(), DBEnv_set_cachesize(), DBEnv_set_data_dir(), DBEnv_set_lg_bsize(), DBEnv_set_lg_dir(), DBEnv_set_lg_max(), DBEnv_set_lk_detect(), DBEnv_set_lk_max(), DBEnv_set_mp_mmapsize(), DBEnv_set_tmp_dir(), DBEnv_set_tx_max(), DBEnv_txn_checkpoint(), DBEnv_txn_stat(), DBTxn_abort(), DBTxn_commit(), DBTxn_id(), DBTxn_prepare(), newDBEnvObject(), newDBLockObject(), newDBObject(), and newDBTxnObject().

#define MYDB_END_BLOCK_THREADS
 

Definition at line 148 of file _rpmdb.c.

#define PY_BSDDB_VERSION   "4.2.4"
 

Definition at line 104 of file _rpmdb.c.

Referenced by DL_EXPORT().

 
#define RETURN_IF_ERR  ) 
 

Value:

if (makeDBError(err)) {      \
        return NULL;             \
    }

Definition at line 273 of file _rpmdb.c.

Referenced by _DB_make_list(), DB_close(), DB_cursor(), DB_fd(), DB_get(), DB_get_both(), DB_get_byteswapped(), DB_get_size(), DB_join(), DB_key_range(), DB_remove(), DB_rename(), DB_set_bt_minkey(), DB_set_cachesize(), DB_set_flags(), DB_set_h_ffactor(), DB_set_h_nelem(), DB_set_lorder(), DB_set_pagesize(), DB_set_re_delim(), DB_set_re_len(), DB_set_re_pad(), DB_set_re_source(), DB_stat(), DB_sync(), DB_upgrade(), DB_verify(), DBC_close(), DBC_count(), DBC_delete(), DBC_dup(), DBC_get_current_size(), DBC_get_recno(), DBC_put(), DBEnv_close(), DBEnv_lock_detect(), DBEnv_lock_id(), DBEnv_lock_put(), DBEnv_lock_stat(), DBEnv_log_archive(), DBEnv_open(), DBEnv_remove(), DBEnv_set_cachesize(), DBEnv_set_data_dir(), DBEnv_set_lg_bsize(), DBEnv_set_lg_dir(), DBEnv_set_lg_max(), DBEnv_set_lk_detect(), DBEnv_set_lk_max(), DBEnv_set_mp_mmapsize(), DBEnv_set_shm_key(), DBEnv_set_tmp_dir(), DBEnv_set_tx_max(), DBEnv_txn_checkpoint(), DBEnv_txn_stat(), DBTxn_abort(), DBTxn_commit(), and DBTxn_prepare().

 
#define RETURN_NONE  )     Py_INCREF(Py_None); return Py_None;
 

Definition at line 278 of file _rpmdb.c.

Referenced by DB_close(), DB_delete(), DB_open(), DB_remove(), DB_rename(), DB_set_bt_minkey(), DB_set_cachesize(), DB_set_flags(), DB_set_h_ffactor(), DB_set_h_nelem(), DB_set_lorder(), DB_set_pagesize(), DB_set_re_delim(), DB_set_re_len(), DB_set_re_pad(), DB_set_re_source(), DB_sync(), DB_upgrade(), DB_verify(), DBC_close(), DBC_delete(), DBC_put(), DBEnv_close(), DBEnv_getattr(), DBEnv_lock_put(), DBEnv_open(), DBEnv_remove(), DBEnv_set_cachesize(), DBEnv_set_data_dir(), DBEnv_set_lg_bsize(), DBEnv_set_lg_dir(), DBEnv_set_lg_max(), DBEnv_set_lk_detect(), DBEnv_set_lk_max(), DBEnv_set_mp_mmapsize(), DBEnv_set_shm_key(), DBEnv_set_tmp_dir(), DBEnv_set_tx_max(), DBEnv_txn_checkpoint(), DBTxn_abort(), DBTxn_commit(), and DBTxn_prepare().


Function Documentation

void _addIntToDict PyObject *  dict,
char *  name,
int  value
[static]
 

Definition at line 656 of file _rpmdb.c.

Referenced by DL_EXPORT().

int _DB_delete DBObject self,
DB_TXN *  txn,
DBT *  key,
int  flags
[static]
 

Definition at line 555 of file _rpmdb.c.

References DBObject::db, DBObject::haveStat, makeDBError(), MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

Referenced by DB_ass_sub(), and DB_delete().

void _db_errorCallback const char *  prefix,
char *  msg
[static]
 

Definition at line 440 of file _rpmdb.c.

References _db_errmsg.

Referenced by newDBEnvObject(), and newDBObject().

int _DB_get_type DBObject self  )  [static]
 

Definition at line 312 of file _rpmdb.c.

References DBObject::db, and makeDBError().

Referenced by _DB_make_list(), _DBC_get_set_both(), _DBCursor_get(), DB_get_type(), DB_stat(), DBC_get(), DBC_set(), DBC_set_range(), and make_key_dbt().

PyObject* _DB_make_list DBObject self,
DB_TXN *  txn,
int  type
[static]
 

Definition at line 2412 of file _rpmdb.c.

References _DB_get_type(), _ITEMS_LIST, _KEYS_LIST, _VALUES_LIST, CHECK_DB_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, DBObject::db, FREE_DBT, makeDBError(), MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

Referenced by DB_items(), DB_keys(), and DB_values().

int _DB_put DBObject self,
DB_TXN *  txn,
DBT *  key,
DBT *  data,
int  flags
[static]
 

Definition at line 572 of file _rpmdb.c.

References DBObject::db, DBObject::haveStat, makeDBError(), MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

Referenced by DB_append(), DB_ass_sub(), and DB_put().

PyObject* _DBC_get_set_both DBCursorObject self,
PyObject *  keyobj,
PyObject *  dataobj,
int  flags,
unsigned int  returnsNone
[static]
 

Definition at line 2947 of file _rpmdb.c.

References _DB_get_type(), DBCursorObject::dbc, FREE_DBT, make_dbt(), make_key_dbt(), makeDBError(), DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

Referenced by DBC_get_both(), and DBC_set_both().

PyObject* _DBCursor_get DBCursorObject self,
int  extra_flags,
PyObject *  args,
PyObject *  kwargs,
char *  format
[static]
 

Definition at line 587 of file _rpmdb.c.

References _DB_get_type(), add_partial_dbt(), CHECK_CURSOR_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, DBCursorObject::dbc, FREE_DBT, behaviourFlags::getReturnsNone, makeDBError(), DBObject::moduleFlags, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

Referenced by DBC_consume(), DBC_current(), DBC_first(), DBC_last(), DBC_next(), DBC_next_dup(), DBC_next_nodup(), DBC_prev(), and DBC_prev_nodup().

int add_partial_dbt DBT *  d,
int  dlen,
int  doff
[static]
 

Definition at line 419 of file _rpmdb.c.

Referenced by _DBCursor_get(), DB_get(), DB_put(), DBC_get(), DBC_put(), DBC_set(), DBC_set_range(), and DBC_set_recno().

PyObject* bsddb_version PyObject *  self,
PyObject *  args
[static]
 

Definition at line 4396 of file _rpmdb.c.

References major, and minor.

int checkTxnObj PyObject *  txnobj,
DB_TXN **  txn
[static]
 

Definition at line 537 of file _rpmdb.c.

References DBTxnObject_Check, and makeTypeError().

Referenced by DB_append(), DB_cursor(), DB_delete(), DB_get(), DB_get_both(), DB_get_size(), DB_has_key(), DB_items(), DB_key_range(), DB_keys(), DB_open(), DB_put(), DB_values(), and DBEnv_txn_begin().

PyObject* DB_append DBObject self,
PyObject *  args
[static]
 

Definition at line 962 of file _rpmdb.c.

References _DB_put(), CHECK_DB_NOT_CLOSED, checkTxnObj(), CLEAR_DBT, and make_dbt().

int DB_ass_sub DBObject self,
PyObject *  keyobj,
PyObject *  dataobj
[static]
 

Definition at line 2333 of file _rpmdb.c.

References _DB_delete(), _DB_put(), DBObject::db, DBError, FREE_DBT, make_dbt(), make_key_dbt(), and DBObject::setflags.

PyObject* DB_close DBObject self,
PyObject *  args
[static]
 

Definition at line 1170 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBObject::db, DBObject::myenvobj, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_construct PyObject *  self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 4362 of file _rpmdb.c.

References DBEnvObject_Check, makeTypeError(), and newDBObject().

PyObject* DB_cursor DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1258 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, checkTxnObj(), DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, newDBCursorObject(), and RETURN_IF_ERR.

void DB_dealloc DBObject self  )  [static]
 

Definition at line 729 of file _rpmdb.c.

References DBObject::db, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and DBObject::myenvobj.

PyObject* DB_delete DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1282 of file _rpmdb.c.

References _DB_delete(), CHECK_DB_NOT_CLOSED, checkTxnObj(), FREE_DBT, make_key_dbt(), and RETURN_NONE.

PyObject* DB_fd DBObject self,
PyObject *  args
[static]
 

Definition at line 1309 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DB_get DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1326 of file _rpmdb.c.

References add_partial_dbt(), CHECK_DB_NOT_CLOSED, CHECK_DBFLAG, checkTxnObj(), CLEAR_DBT, DBObject::db, FREE_DBT, behaviourFlags::getReturnsNone, make_key_dbt(), DBObject::moduleFlags, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DB_get_both DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1429 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, CHECK_DBFLAG, checkTxnObj(), DBObject::db, FREE_DBT, behaviourFlags::getReturnsNone, make_dbt(), make_key_dbt(), DBObject::moduleFlags, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DB_get_byteswapped DBObject self,
PyObject *  args
[static]
 

Definition at line 1484 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DB_get_size DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1389 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, checkTxnObj(), CLEAR_DBT, DBObject::db, FREE_DBT, make_key_dbt(), MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DB_get_type DBObject self,
PyObject *  args
[static]
 

Definition at line 1510 of file _rpmdb.c.

References _DB_get_type(), CHECK_DB_NOT_CLOSED, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DB_getattr DBObject self,
char *  name
[static]
 

Definition at line 4207 of file _rpmdb.c.

References DB_methods.

PyObject* DB_has_key DBObject self,
PyObject *  args
[static]
 

Definition at line 2376 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, checkTxnObj(), CLEAR_DBT, DBObject::db, FREE_DBT, make_key_dbt(), MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DB_items DBObject self,
PyObject *  args
[static]
 

Definition at line 2532 of file _rpmdb.c.

References _DB_make_list(), _ITEMS_LIST, and checkTxnObj().

PyObject* DB_join DBObject self,
PyObject *  args
[static]
 

Definition at line 1528 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, DBCursorObject_Check, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, newDBCursorObject(), and RETURN_IF_ERR.

PyObject* DB_key_range DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1578 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, checkTxnObj(), DBObject::db, make_dbt(), MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DB_keys DBObject self,
PyObject *  args
[static]
 

Definition at line 2518 of file _rpmdb.c.

References _DB_make_list(), _KEYS_LIST, and checkTxnObj().

int DB_length DBObject self  ) 
 

Definition at line 2257 of file _rpmdb.c.

References DBObject::db, DBError, DBObject::haveStat, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DB_open DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1608 of file _rpmdb.c.

References checkTxnObj(), DBObject::db, DBError, DBObject::flags, DBEnvObject::flags, makeDBError(), MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, DBObject::myenvobj, and RETURN_NONE.

PyObject* DB_put DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1702 of file _rpmdb.c.

References _DB_put(), add_partial_dbt(), CHECK_DB_NOT_CLOSED, checkTxnObj(), FREE_DBT, make_dbt(), and make_key_dbt().

PyObject* DB_remove DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 1741 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_rename DBObject self,
PyObject *  args
[static]
 

Definition at line 1762 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_bt_minkey DBObject self,
PyObject *  args
[static]
 

Definition at line 1783 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_cachesize DBObject self,
PyObject *  args
[static]
 

Definition at line 1800 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_flags DBObject self,
PyObject *  args
[static]
 

Definition at line 1819 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, RETURN_NONE, and DBObject::setflags.

PyObject* DB_set_get_returns_none DBObject self,
PyObject *  args
[static]
 

Definition at line 2212 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, behaviourFlags::cursorSetReturnsNone, behaviourFlags::getReturnsNone, and DBObject::moduleFlags.

PyObject* DB_set_h_ffactor DBObject self,
PyObject *  args
[static]
 

Definition at line 1838 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_h_nelem DBObject self,
PyObject *  args
[static]
 

Definition at line 1855 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_lorder DBObject self,
PyObject *  args
[static]
 

Definition at line 1872 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_pagesize DBObject self,
PyObject *  args
[static]
 

Definition at line 1889 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_re_delim DBObject self,
PyObject *  args
[static]
 

Definition at line 1906 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_re_len DBObject self,
PyObject *  args
[static]
 

Definition at line 1927 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_re_pad DBObject self,
PyObject *  args
[static]
 

Definition at line 1944 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_set_re_source DBObject self,
PyObject *  args
[static]
 

Definition at line 1965 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_stat DBObject self,
PyObject *  args
[static]
 

Definition at line 2002 of file _rpmdb.c.

References _DB_get_type(), CHECK_DB_NOT_CLOSED, DBObject::db, DBObject::haveStat, MAKE_BT_ENTRY, MAKE_HASH_ENTRY, MAKE_QUEUE_ENTRY, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DB_subscript DBObject self,
PyObject *  keyobj
 

Definition at line 2296 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, DBObject::db, FREE_DBT, make_key_dbt(), makeDBError(), MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DB_sync DBObject self,
PyObject *  args
[static]
 

Definition at line 2111 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_upgrade DBObject self,
PyObject *  args
[static]
 

Definition at line 2155 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DB_values DBObject self,
PyObject *  args
[static]
 

Definition at line 2546 of file _rpmdb.c.

References _DB_make_list(), _VALUES_LIST, and checkTxnObj().

PyObject* DB_verify DBObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2173 of file _rpmdb.c.

References CHECK_DB_NOT_CLOSED, DBObject::db, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBC_close DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 2563 of file _rpmdb.c.

References DBCursorObject::dbc, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBC_consume DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 3120 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_count DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 2582 of file _rpmdb.c.

References CHECK_CURSOR_NOT_CLOSED, DBCursorObject::dbc, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DBC_current DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2603 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_delete DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 2610 of file _rpmdb.c.

References CHECK_CURSOR_NOT_CLOSED, DBCursorObject::dbc, DBObject::haveStat, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBC_dup DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 2630 of file _rpmdb.c.

References CHECK_CURSOR_NOT_CLOSED, DBCursorObject::dbc, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, newDBCursorObject(), and RETURN_IF_ERR.

PyObject* DBC_first DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2649 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_get DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2656 of file _rpmdb.c.

References _DB_get_type(), add_partial_dbt(), CHECK_CURSOR_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, DBCursorObject::dbc, FREE_DBT, behaviourFlags::getReturnsNone, make_dbt(), make_key_dbt(), makeDBError(), DBObject::moduleFlags, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DBC_get_both DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 2994 of file _rpmdb.c.

References _DBC_get_set_both(), CHECK_CURSOR_NOT_CLOSED, behaviourFlags::getReturnsNone, DBObject::moduleFlags, and DBCursorObject::mydb.

PyObject* DBC_get_current_size DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 3011 of file _rpmdb.c.

References CHECK_CURSOR_NOT_CLOSED, CLEAR_DBT, DBCursorObject::dbc, FREE_DBT, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DBC_get_recno DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 2738 of file _rpmdb.c.

References CHECK_CURSOR_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, DBCursorObject::dbc, FREE_DBT, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DBC_join_item DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 3148 of file _rpmdb.c.

References CHECK_CURSOR_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, DBCursorObject::dbc, FREE_DBT, behaviourFlags::getReturnsNone, makeDBError(), DBObject::moduleFlags, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DBC_last DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2771 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_next DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2778 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_next_dup DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 3127 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_next_nodup DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 3134 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_prev DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2785 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_prev_nodup DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 3141 of file _rpmdb.c.

References _DBCursor_get().

PyObject* DBC_put DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2792 of file _rpmdb.c.

References add_partial_dbt(), CHECK_CURSOR_NOT_CLOSED, DBCursorObject::dbc, FREE_DBT, DBObject::haveStat, make_dbt(), make_key_dbt(), DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBC_set DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2824 of file _rpmdb.c.

References _DB_get_type(), add_partial_dbt(), CHECK_CURSOR_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, behaviourFlags::cursorSetReturnsNone, DBCursorObject::dbc, FREE_DBT, make_key_dbt(), makeDBError(), DBObject::moduleFlags, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DBC_set_both DBCursorObject self,
PyObject *  args
[static]
 

Definition at line 3043 of file _rpmdb.c.

References _DBC_get_set_both(), CHECK_CURSOR_NOT_CLOSED, behaviourFlags::cursorSetReturnsNone, DBObject::moduleFlags, and DBCursorObject::mydb.

PyObject* DBC_set_range DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 2886 of file _rpmdb.c.

References _DB_get_type(), add_partial_dbt(), CHECK_CURSOR_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, behaviourFlags::cursorSetReturnsNone, DBCursorObject::dbc, FREE_DBT, make_key_dbt(), makeDBError(), DBObject::moduleFlags, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DBC_set_recno DBCursorObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 3060 of file _rpmdb.c.

References add_partial_dbt(), CHECK_CURSOR_NOT_CLOSED, CHECK_DBFLAG, CLEAR_DBT, behaviourFlags::cursorSetReturnsNone, DBCursorObject::dbc, FREE_DBT, makeDBError(), DBObject::moduleFlags, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

void DBCursor_dealloc DBCursorObject self  )  [static]
 

Definition at line 790 of file _rpmdb.c.

References DBEnvObject::closed, DBObject::db, DBCursorObject::dbc, DBCursorObject::mydb, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and DBObject::myenvobj.

PyObject* DBCursor_getattr DBCursorObject self,
char *  name
[static]
 

Definition at line 4229 of file _rpmdb.c.

References DBCursor_methods.

PyObject* DBEnv_close DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3191 of file _rpmdb.c.

References DBEnvObject::closed, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_construct PyObject *  self,
PyObject *  args
[static]
 

Definition at line 4383 of file _rpmdb.c.

References newDBEnvObject().

void DBEnv_dealloc DBEnvObject self  )  [static]
 

Definition at line 856 of file _rpmdb.c.

References DBEnvObject::closed, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

PyObject* DBEnv_getattr DBEnvObject self,
char *  name
[static]
 

Definition at line 4214 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, DBEnv_methods, and RETURN_NONE.

PyObject* DBEnv_lock_detect DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3653 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DBEnv_lock_get DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3675 of file _rpmdb.c.

References make_dbt(), and newDBLockObject().

PyObject* DBEnv_lock_id DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3694 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DBEnv_lock_put DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3717 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, DBLock_Type, DBLockObject::lock, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_lock_stat DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3739 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MAKE_ENTRY, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DBEnv_log_archive DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3805 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

PyObject* DBEnv_open DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3212 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::closed, DBEnvObject::db_env, DBEnvObject::flags, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_remove DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3233 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_cachesize DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3364 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_data_dir DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3402 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_get_returns_none DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3904 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, behaviourFlags::cursorSetReturnsNone, behaviourFlags::getReturnsNone, and DBEnvObject::moduleFlags.

PyObject* DBEnv_set_lg_bsize DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3420 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_lg_dir DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3437 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_lg_max DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3454 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_lk_detect DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3471 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_lk_max DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3488 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_mp_mmapsize DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3560 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_shm_key DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3349 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_tmp_dir DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3577 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_set_tx_max DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3636 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_txn_begin DBEnvObject self,
PyObject *  args,
PyObject *  kwargs
[static]
 

Definition at line 3595 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, checkTxnObj(), and newDBTxnObject().

PyObject* DBEnv_txn_checkpoint DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3615 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, and RETURN_NONE.

PyObject* DBEnv_txn_stat DBEnvObject self,
PyObject *  args
[static]
 

Definition at line 3854 of file _rpmdb.c.

References CHECK_ENV_NOT_CLOSED, DBEnvObject::db_env, MAKE_ENTRY, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and RETURN_IF_ERR.

void DBLock_dealloc DBLockObject self  )  [static]
 

Definition at line 946 of file _rpmdb.c.

PyObject* DBLock_getattr DBLockObject self,
char *  name
[static]
 

Definition at line 4241 of file _rpmdb.c.

PyObject* DBTxn_abort DBTxnObject self,
PyObject *  args
[static]
 

Definition at line 4006 of file _rpmdb.c.

References DBError, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, RETURN_NONE, and DBTxnObject::txn.

PyObject* DBTxn_commit DBTxnObject self,
PyObject *  args
[static]
 

Definition at line 3928 of file _rpmdb.c.

References DBError, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, RETURN_NONE, and DBTxnObject::txn.

void DBTxn_dealloc DBTxnObject self  )  [static]
 

Definition at line 900 of file _rpmdb.c.

PyObject* DBTxn_getattr DBTxnObject self,
char *  name
[static]
 

Definition at line 4235 of file _rpmdb.c.

References DBTxn_methods.

PyObject* DBTxn_id DBTxnObject self,
PyObject *  args
[static]
 

Definition at line 4034 of file _rpmdb.c.

References DBError, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and DBTxnObject::txn.

PyObject* DBTxn_prepare DBTxnObject self,
PyObject *  args
[static]
 

Definition at line 3955 of file _rpmdb.c.

References DBError, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, RETURN_IF_ERR, RETURN_NONE, and DBTxnObject::txn.

DL_EXPORT void   ) 
 

Definition at line 4429 of file _rpmdb.c.

References _addIntToDict(), _bsddbModuleName, ADD_INT, bsddb_methods, DB_CLIENT, DB_Type, DBAccessError, DBAgainError, DBBusyError, DBCursor_Type, DBCursorClosedError, DBEnv_Type, DBError, DBFileExistsError, DBInvalidArgError, DBKeyEmptyError, DBKeyExistError, DBLock_Type, DBLockDeadlockError, DBLockNotGrantedError, DBNoMemoryError, DBNoServerError, DBNoServerHomeError, DBNoServerIDError, DBNoSpaceError, DBNoSuchFileError, DBNotFoundError, DBOldVersionError, DBPermissionsError, DBRunRecoveryError, DBTxn_Type, DBVerifyBadError, MAKE_EX, PY_BSDDB_VERSION, and rcs_id.

int make_dbt PyObject *  obj,
DBT *  dbt
[static]
 

Definition at line 330 of file _rpmdb.c.

References CLEAR_DBT.

Referenced by _DBC_get_set_both(), DB_append(), DB_ass_sub(), DB_get_both(), DB_key_range(), DB_put(), DBC_get(), DBC_put(), and DBEnv_lock_get().

int make_key_dbt DBObject self,
PyObject *  keyobj,
DBT *  key,
int *  pflags
[static]
 

Definition at line 350 of file _rpmdb.c.

References _DB_get_type(), and CLEAR_DBT.

Referenced by _DBC_get_set_both(), DB_ass_sub(), DB_delete(), DB_get(), DB_get_both(), DB_get_size(), DB_has_key(), DB_put(), DB_subscript(), DBC_get(), DBC_put(), DBC_set(), and DBC_set_range().

int makeDBError int  err  )  [static]
 

Definition at line 447 of file _rpmdb.c.

References _db_errmsg, DBAccessError, DBAgainError, DBBusyError, DBError, DBFileExistsError, DBInvalidArgError, DBKeyEmptyError, DBKeyExistError, DBLockDeadlockError, DBLockNotGrantedError, DBNoMemoryError, DBNoServerError, DBNoServerHomeError, DBNoServerIDError, DBNoSpaceError, DBNoSuchFileError, DBNotFoundError, DBOldVersionError, DBPermissionsError, DBRunRecoveryError, and DBVerifyBadError.

Referenced by _DB_delete(), _DB_get_type(), _DB_make_list(), _DB_put(), _DBC_get_set_both(), _DBCursor_get(), DB_open(), DB_subscript(), DBC_get(), DBC_join_item(), DBC_set(), DBC_set_range(), DBC_set_recno(), newDBEnvObject(), newDBLockObject(), newDBObject(), and newDBTxnObject().

void makeTypeError char *  expected,
PyObject *  found
[static]
 

Definition at line 529 of file _rpmdb.c.

Referenced by checkTxnObj(), and DB_construct().

DBCursorObject* newDBCursorObject DBC *  dbc,
DBObject db
[static]
 

Definition at line 768 of file _rpmdb.c.

References DBCursorObject::dbc, DBCursor_Type, and DBCursorObject::mydb.

Referenced by DB_cursor(), DB_join(), and DBC_dup().

DBEnvObject* newDBEnvObject int  flags  )  [static]
 

Definition at line 824 of file _rpmdb.c.

References _db_errorCallback(), DBEnvObject::closed, behaviourFlags::cursorSetReturnsNone, DBEnvObject::db_env, DBEnv_Type, DEFAULT_CURSOR_SET_RETURNS_NONE, DEFAULT_GET_RETURNS_NONE, DBEnvObject::flags, behaviourFlags::getReturnsNone, makeDBError(), DBEnvObject::moduleFlags, MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

Referenced by DBEnv_construct().

DBLockObject* newDBLockObject DBEnvObject myenv,
u_int32_t  locker,
DBT *  obj,
db_lockmode_t  lock_mode,
int  flags
[static]
 

Definition at line 915 of file _rpmdb.c.

References DBEnvObject::db_env, DBLock_Type, DBLockObject::lock, makeDBError(), MYDB_BEGIN_ALLOW_THREADS, and MYDB_END_ALLOW_THREADS.

Referenced by DBEnv_lock_get().

DBObject* newDBObject DBEnvObject arg,
int  flags
[static]
 

Definition at line 672 of file _rpmdb.c.

References _db_errorCallback(), behaviourFlags::cursorSetReturnsNone, DBObject::db, DBEnvObject::db_env, DB_Type, DEFAULT_CURSOR_SET_RETURNS_NONE, DEFAULT_GET_RETURNS_NONE, DBObject::flags, behaviourFlags::getReturnsNone, DBObject::haveStat, makeDBError(), DBEnvObject::moduleFlags, DBObject::moduleFlags, MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, DBObject::myenvobj, and DBObject::setflags.

Referenced by DB_construct().

DBTxnObject* newDBTxnObject DBEnvObject myenv,
DB_TXN *  parent,
int  flags
[static]
 

Definition at line 872 of file _rpmdb.c.

References DBEnvObject::db_env, DBTxn_Type, makeDBError(), MYDB_BEGIN_ALLOW_THREADS, MYDB_END_ALLOW_THREADS, and DBTxnObject::txn.

Referenced by DBEnv_txn_begin().


Variable Documentation

char _bsddbModuleName[ 11 +1] = "_bsddb" [static]
 

Definition at line 4427 of file _rpmdb.c.

Referenced by DL_EXPORT().

char _db_errmsg[1024] [static]
 

Definition at line 439 of file _rpmdb.c.

Referenced by _db_errorCallback(), and makeDBError().

PyMethodDef bsddb_methods[] [static]
 

Initial value:

 {
    {"DB",      (PyCFunction)DB_construct,      METH_VARARGS | METH_KEYWORDS },
    {"DBEnv",   (PyCFunction)DBEnv_construct,   METH_VARARGS},
    {"version", (PyCFunction)bsddb_version,     METH_VARARGS, bsddb_version_doc},
    {NULL,      NULL}       
}

Definition at line 4409 of file _rpmdb.c.

Referenced by DL_EXPORT().

char bsddb_version_doc[] [static]
 

Initial value:

"Returns a tuple of major, minor, and patch release numbers of the\n\
underlying DB library."

Definition at line 4391 of file _rpmdb.c.

PyMappingMethods DB_mapping [static]
 

Initial value:

 {
        (inquiry)DB_length,          
        (binaryfunc)DB_subscript,    
        (objobjargproc)DB_ass_sub,   
}

Definition at line 4117 of file _rpmdb.c.

PyMethodDef DB_methods[] [static]
 

Definition at line 4059 of file _rpmdb.c.

Referenced by DB_getattr().

statichere PyTypeObject DB_Type
 

Initial value:

 {
    PyObject_HEAD_INIT(NULL)
    0,                  
    "DB",               
    sizeof(DBObject),   
    0,                  
    
    (destructor)DB_dealloc, 
    0,                  
    (getattrfunc)DB_getattr, 
    0,                      
    0,          
    0,          
    0,          
    0,          
    &DB_mapping,
    0,          
}

Definition at line 4246 of file _rpmdb.c.

Referenced by DL_EXPORT(), and newDBObject().

PyObject* DBAccessError [static]
 

Definition at line 181 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBAgainError [static]
 

Definition at line 184 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBBusyError [static]
 

Definition at line 185 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyMethodDef DBCursor_methods[] [static]
 

Initial value:

 {
    {"close",           (PyCFunction)DBC_close,         METH_VARARGS},
    {"count",           (PyCFunction)DBC_count,         METH_VARARGS},
    {"current",         (PyCFunction)DBC_current,       METH_VARARGS|METH_KEYWORDS},
    {"delete",          (PyCFunction)DBC_delete,        METH_VARARGS},
    {"dup",             (PyCFunction)DBC_dup,           METH_VARARGS},
    {"first",           (PyCFunction)DBC_first,         METH_VARARGS|METH_KEYWORDS},
    {"get",             (PyCFunction)DBC_get,           METH_VARARGS|METH_KEYWORDS},
    {"get_recno",       (PyCFunction)DBC_get_recno,     METH_VARARGS},
    {"last",            (PyCFunction)DBC_last,          METH_VARARGS|METH_KEYWORDS},
    {"next",            (PyCFunction)DBC_next,          METH_VARARGS|METH_KEYWORDS},
    {"prev",            (PyCFunction)DBC_prev,          METH_VARARGS|METH_KEYWORDS},
    {"put",             (PyCFunction)DBC_put,           METH_VARARGS|METH_KEYWORDS},
    {"set",             (PyCFunction)DBC_set,           METH_VARARGS|METH_KEYWORDS},
    {"set_range",       (PyCFunction)DBC_set_range,     METH_VARARGS|METH_KEYWORDS},
    {"get_both",        (PyCFunction)DBC_get_both,      METH_VARARGS},
    {"get_current_size",(PyCFunction)DBC_get_current_size, METH_VARARGS},
    {"set_both",        (PyCFunction)DBC_set_both,      METH_VARARGS},
    {"set_recno",       (PyCFunction)DBC_set_recno,     METH_VARARGS|METH_KEYWORDS},
    {"consume",         (PyCFunction)DBC_consume,       METH_VARARGS|METH_KEYWORDS},
    {"next_dup",        (PyCFunction)DBC_next_dup,      METH_VARARGS|METH_KEYWORDS},
    {"next_nodup",      (PyCFunction)DBC_next_nodup,    METH_VARARGS|METH_KEYWORDS},
    {"prev_nodup",      (PyCFunction)DBC_prev_nodup,    METH_VARARGS|METH_KEYWORDS},
    {"join_item",       (PyCFunction)DBC_join_item,     METH_VARARGS},
    {NULL,      NULL}       
}

Definition at line 4124 of file _rpmdb.c.

Referenced by DBCursor_getattr().

statichere PyTypeObject DBCursor_Type
 

Definition at line 4266 of file _rpmdb.c.

Referenced by DL_EXPORT(), and newDBCursorObject().

PyObject* DBCursorClosedError [static]
 

Definition at line 159 of file _rpmdb.c.

Referenced by DL_EXPORT().

PyMethodDef DBEnv_methods[] [static]
 

Definition at line 4152 of file _rpmdb.c.

Referenced by DBEnv_getattr().

statichere PyTypeObject DBEnv_Type
 

Initial value:

 {
    PyObject_HEAD_INIT(NULL)
    0,          
    "DBEnv",            
    sizeof(DBEnvObject),    
    0,          
    
    (destructor)DBEnv_dealloc, 
    0,          
    (getattrfunc)DBEnv_getattr, 
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
}

Definition at line 4299 of file _rpmdb.c.

Referenced by DL_EXPORT(), and newDBEnvObject().

PyObject* DBError [static]
 

Definition at line 158 of file _rpmdb.c.

Referenced by DB_ass_sub(), DB_length(), DB_open(), DBTxn_abort(), DBTxn_commit(), DBTxn_id(), DBTxn_prepare(), DL_EXPORT(), and makeDBError().

PyObject* DBFileExistsError [static]
 

Definition at line 186 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBInvalidArgError [static]
 

Definition at line 180 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBKeyEmptyError [static]
 

Definition at line 160 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBKeyExistError [static]
 

Definition at line 161 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

statichere PyTypeObject DBLock_Type
 

Initial value:

 {
    PyObject_HEAD_INIT(NULL)
    0,          
    "DBLock",   
    sizeof(DBLockObject),  
    0,          
    
    (destructor)DBLock_dealloc, 
    0,          
    (getattrfunc)DBLock_getattr, 
    0,                      
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
}

Definition at line 4338 of file _rpmdb.c.

Referenced by DBEnv_lock_put(), DL_EXPORT(), and newDBLockObject().

PyObject* DBLockDeadlockError [static]
 

Definition at line 162 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBLockNotGrantedError [static]
 

Definition at line 163 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBNoMemoryError [static]
 

Definition at line 183 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBNoServerError [static]
 

Definition at line 168 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBNoServerHomeError [static]
 

Definition at line 169 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBNoServerIDError [static]
 

Definition at line 170 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBNoSpaceError [static]
 

Definition at line 182 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBNoSuchFileError [static]
 

Definition at line 187 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBNotFoundError [static]
 

Definition at line 164 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBOldVersionError [static]
 

Definition at line 165 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBPermissionsError [static]
 

Definition at line 188 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyObject* DBRunRecoveryError [static]
 

Definition at line 166 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

PyMethodDef DBTxn_methods[] [static]
 

Initial value:

 {
    {"commit",          (PyCFunction)DBTxn_commit,      METH_VARARGS},
    {"prepare",         (PyCFunction)DBTxn_prepare,     METH_VARARGS},
    {"abort",           (PyCFunction)DBTxn_abort,       METH_VARARGS},
    {"id",              (PyCFunction)DBTxn_id,          METH_VARARGS},
    {NULL,      NULL}       
}

Definition at line 4197 of file _rpmdb.c.

Referenced by DBTxn_getattr().

statichere PyTypeObject DBTxn_Type
 

Initial value:

 {
    PyObject_HEAD_INIT(NULL)
    0,          
    "DBTxn",    
    sizeof(DBTxnObject),  
    0,          
    
    (destructor)DBTxn_dealloc, 
    0,          
    (getattrfunc)DBTxn_getattr, 
    0,                      
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
}

Definition at line 4318 of file _rpmdb.c.

Referenced by DL_EXPORT(), and newDBTxnObject().

PyObject* DBVerifyBadError [static]
 

Definition at line 167 of file _rpmdb.c.

Referenced by DL_EXPORT(), and makeDBError().

char* rcs_id = "$Id: _rpmdb.c,v 1.12 2004/01/01 16:34:10 jbj Exp $" [static]
 

Definition at line 105 of file _rpmdb.c.

Referenced by DL_EXPORT().


Generated on Fri Apr 16 16:34:00 2004 for rpm by doxygen 1.3.6