The function has been marked as deprecated in 0.14 and is now removed.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
MODE.READ_WRITE
Open the database in read-write mode
MODE.READ_WRITE
Open the database in read-write mode
-
- .. autoattribute:: db_p
raise NotmuchError(message="No DB path specified"
" and no user default found")
return config.get('database', 'path')
raise NotmuchError(message="No DB path specified"
" and no user default found")
return config.get('database', 'path')
-
- @property
- def db_p(self):
- """Property returning a pointer to `notmuch_database_t` or `None`
-
- .. deprecated:: 0.14
- If you really need a pointer to the notmuch
- database object use the `_pointer` field. This
- alias will be removed in notmuch 0.15.
- """
- return self._db
# create reference to parent db to keep it alive
self._db = db
# create query, return None if too little mem available
# create reference to parent db to keep it alive
self._db = db
# create query, return None if too little mem available
- query_p = Query._create(db.db_p, _str(querystr))
+ query_p = Query._create(db._db, _str(querystr))
if not query_p:
raise NullPointerError
self._query = query_p
if not query_p:
raise NullPointerError
self._query = query_p