2002-11-19 04:09:52 -04:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
# This file contains real Python object wrappers for DB and DBEnv
|
|
|
|
# C "objects" that can be usefully subclassed. The previous SWIG
|
|
|
|
# based interface allowed this thanks to SWIG's shadow classes.
|
|
|
|
# -- Gregory P. Smith
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# (C) Copyright 2001 Autonomous Zone Industries
|
|
|
|
#
|
|
|
|
# License: This is free software. You may use this software for any
|
|
|
|
# purpose including modification/redistribution, so long as
|
|
|
|
# this header remains intact and that you do not claim any
|
|
|
|
# rights of ownership or authorship of this software. This
|
|
|
|
# software has been tested, but no warranty is expressed or
|
|
|
|
# implied.
|
|
|
|
#
|
|
|
|
|
2003-07-09 01:45:59 -03:00
|
|
|
#
|
|
|
|
# TODO it would be *really nice* to have an automatic shadow class populator
|
|
|
|
# so that new methods don't need to be added here manually after being
|
|
|
|
# added to _bsddb.c.
|
|
|
|
#
|
|
|
|
|
2008-07-23 08:38:42 -03:00
|
|
|
import sys
|
|
|
|
absolute_import = (sys.version_info[0] >= 3)
|
|
|
|
if absolute_import :
|
|
|
|
# Because this syntaxis is not valid before Python 2.5
|
|
|
|
exec("from . import db")
|
|
|
|
else :
|
|
|
|
import db
|
2003-02-07 23:18:58 -04:00
|
|
|
|
2010-03-22 11:22:26 -03:00
|
|
|
if sys.version_info < (2, 6) :
|
2013-03-19 18:46:29 -03:00
|
|
|
from UserDict import DictMixin as MutableMapping
|
2008-07-23 08:38:42 -03:00
|
|
|
else :
|
|
|
|
import collections
|
|
|
|
MutableMapping = collections.MutableMapping
|
2002-11-19 04:09:52 -04:00
|
|
|
|
|
|
|
class DBEnv:
|
|
|
|
def __init__(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
self._cobj = db.DBEnv(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
|
|
|
|
def close(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.close(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def open(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.open(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def remove(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.remove(*args, **kwargs)
|
2003-08-28 18:50:30 -03:00
|
|
|
def set_shm_key(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_shm_key(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_cachesize(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_cachesize(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_data_dir(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_data_dir(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_flags(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_flags(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_lg_bsize(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lg_bsize(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_lg_dir(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lg_dir(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_lg_max(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lg_max(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_lk_detect(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lk_detect(*args, **kwargs)
|
2007-01-04 21:59:42 -04:00
|
|
|
if db.version() < (4,5):
|
|
|
|
def set_lk_max(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lk_max(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_lk_max_locks(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lk_max_locks(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_lk_max_lockers(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lk_max_lockers(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_lk_max_objects(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lk_max_objects(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_mp_mmapsize(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_mp_mmapsize(*args, **kwargs)
|
2003-07-09 01:45:59 -03:00
|
|
|
def set_timeout(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_timeout(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_tmp_dir(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_tmp_dir(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def txn_begin(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.txn_begin(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def txn_checkpoint(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.txn_checkpoint(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def txn_stat(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.txn_stat(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_tx_max(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_tx_max(*args, **kwargs)
|
2006-01-27 03:06:15 -04:00
|
|
|
def set_tx_timestamp(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_tx_timestamp(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def lock_detect(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.lock_detect(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def lock_get(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.lock_get(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def lock_id(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.lock_id(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def lock_put(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.lock_put(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def lock_stat(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.lock_stat(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def log_archive(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.log_archive(*args, **kwargs)
|
2006-06-04 22:56:15 -03:00
|
|
|
|
|
|
|
def set_get_returns_none(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_get_returns_none(*args, **kwargs)
|
2006-06-04 22:56:15 -03:00
|
|
|
|
2008-07-23 08:38:42 -03:00
|
|
|
def log_stat(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.log_stat(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
|
2010-03-22 11:22:26 -03:00
|
|
|
def dbremove(self, *args, **kwargs):
|
|
|
|
return self._cobj.dbremove(*args, **kwargs)
|
|
|
|
def dbrename(self, *args, **kwargs):
|
|
|
|
return self._cobj.dbrename(*args, **kwargs)
|
|
|
|
def set_encrypt(self, *args, **kwargs):
|
|
|
|
return self._cobj.set_encrypt(*args, **kwargs)
|
2002-12-30 16:53:52 -04:00
|
|
|
|
2006-06-04 22:56:15 -03:00
|
|
|
if db.version() >= (4,4):
|
2010-03-22 11:22:26 -03:00
|
|
|
def fileid_reset(self, *args, **kwargs):
|
|
|
|
return self._cobj.fileid_reset(*args, **kwargs)
|
|
|
|
|
2006-06-05 15:36:12 -03:00
|
|
|
def lsn_reset(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.lsn_reset(*args, **kwargs)
|
2006-06-04 22:56:15 -03:00
|
|
|
|
2002-11-19 04:09:52 -04:00
|
|
|
|
2008-07-23 08:38:42 -03:00
|
|
|
class DB(MutableMapping):
|
2002-11-19 04:09:52 -04:00
|
|
|
def __init__(self, dbenv, *args, **kwargs):
|
|
|
|
# give it the proper DBEnv C object that its expecting
|
2009-10-14 15:01:33 -03:00
|
|
|
self._cobj = db.DB(*((dbenv._cobj,) + args), **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
|
|
|
|
# TODO are there other dict methods that need to be overridden?
|
|
|
|
def __len__(self):
|
|
|
|
return len(self._cobj)
|
|
|
|
def __getitem__(self, arg):
|
|
|
|
return self._cobj[arg]
|
|
|
|
def __setitem__(self, key, value):
|
|
|
|
self._cobj[key] = value
|
|
|
|
def __delitem__(self, arg):
|
|
|
|
del self._cobj[arg]
|
|
|
|
|
2010-03-22 11:22:26 -03:00
|
|
|
if sys.version_info >= (2, 6) :
|
2008-07-23 08:38:42 -03:00
|
|
|
def __iter__(self) :
|
|
|
|
return self._cobj.__iter__()
|
|
|
|
|
2002-11-19 04:09:52 -04:00
|
|
|
def append(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.append(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def associate(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.associate(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def close(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.close(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def consume(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.consume(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def consume_wait(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.consume_wait(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def cursor(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.cursor(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def delete(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.delete(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def fd(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.fd(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def get(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get(*args, **kwargs)
|
2004-06-28 01:06:49 -03:00
|
|
|
def pget(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.pget(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def get_both(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_both(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def get_byteswapped(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_byteswapped(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def get_size(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_size(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def get_type(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_type(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def join(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.join(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def key_range(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.key_range(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def has_key(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.has_key(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def items(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.items(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def keys(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.keys(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def open(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.open(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def put(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.put(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def remove(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.remove(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def rename(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.rename(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_bt_minkey(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_bt_minkey(*args, **kwargs)
|
2005-06-03 04:03:07 -03:00
|
|
|
def set_bt_compare(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_bt_compare(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_cachesize(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_cachesize(*args, **kwargs)
|
2013-03-19 18:46:29 -03:00
|
|
|
def set_dup_compare(self, *args, **kwargs) :
|
|
|
|
return self._cobj.set_dup_compare(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_flags(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_flags(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_h_ffactor(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_h_ffactor(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_h_nelem(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_h_nelem(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_lorder(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_lorder(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_pagesize(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_pagesize(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_re_delim(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_re_delim(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_re_len(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_re_len(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_re_pad(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_re_pad(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_re_source(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_re_source(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_q_extentsize(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_q_extentsize(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def stat(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.stat(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def sync(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.sync(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def type(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.type(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def upgrade(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.upgrade(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def values(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.values(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def verify(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.verify(*args, **kwargs)
|
2002-11-19 04:09:52 -04:00
|
|
|
def set_get_returns_none(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_get_returns_none(*args, **kwargs)
|
2002-12-30 16:53:52 -04:00
|
|
|
|
2010-03-22 11:22:26 -03:00
|
|
|
def set_encrypt(self, *args, **kwargs):
|
|
|
|
return self._cobj.set_encrypt(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
|
|
|
|
|
|
|
|
class DBSequence:
|
|
|
|
def __init__(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
self._cobj = db.DBSequence(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
|
|
|
|
def close(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.close(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def get(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def get_dbp(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_dbp(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def get_key(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_key(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def init_value(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.init_value(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def open(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.open(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def remove(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.remove(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def stat(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.stat(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def set_cachesize(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_cachesize(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def set_flags(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_flags(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def set_range(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.set_range(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def get_cachesize(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_cachesize(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def get_flags(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_flags(*args, **kwargs)
|
2006-06-05 14:38:04 -03:00
|
|
|
def get_range(self, *args, **kwargs):
|
2009-10-14 15:01:33 -03:00
|
|
|
return self._cobj.get_range(*args, **kwargs)
|