• Home
  • Raw
  • Download

Lines Matching refs:keyobj

411 make_key_dbt(DBObject* self, PyObject* keyobj, DBT* key, int* pflags)  in make_key_dbt()  argument
417 if (keyobj == Py_None) { in make_key_dbt()
430 else if (PyBytes_Check(keyobj)) { in make_key_dbt()
453 key->data = malloc(PyBytes_GET_SIZE(keyobj)); in make_key_dbt()
458 memcpy(key->data, PyBytes_AS_STRING(keyobj), in make_key_dbt()
459 PyBytes_GET_SIZE(keyobj)); in make_key_dbt()
461 key->size = PyBytes_GET_SIZE(keyobj); in make_key_dbt()
464 else if (NUMBER_Check(keyobj)) { in make_key_dbt()
483 recno = NUMBER_AsLong(keyobj); in make_key_dbt()
500 Py_TYPE(keyobj)->tp_name); in make_key_dbt()
1813 PyObject* keyobj; in DB_delete() local
1819 &keyobj, &txnobj, &flags)) in DB_delete()
1822 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_delete()
1918 PyObject* keyobj; in DB_exists() local
1925 &keyobj, &txnobj, &flags)) in DB_exists()
1929 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_exists()
1966 PyObject* keyobj; in DB_get() local
1977 &keyobj, &dfltobj, &txnobj, &flags, &dlen, in DB_get()
1982 if (!make_key_dbt(self, keyobj, &key, &flags)) in DB_get()
2032 PyObject* keyobj; in DB_pget() local
2043 &keyobj, &dfltobj, &txnobj, &flags, &dlen, in DB_pget()
2048 if (!make_key_dbt(self, keyobj, &key, &flags)) in DB_pget()
2127 PyObject* keyobj; in DB_get_size() local
2134 &keyobj, &txnobj)) in DB_get_size()
2137 if (!make_key_dbt(self, keyobj, &key, &flags)) in DB_get_size()
2169 PyObject* keyobj; in DB_get_both() local
2178 &keyobj, &dataobj, &txnobj, &flags)) in DB_get_both()
2182 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_get_both()
2327 PyObject* keyobj; in DB_key_range() local
2334 &keyobj, &txnobj, &flags)) in DB_key_range()
2337 if (!make_dbt(keyobj, &key)) in DB_key_range()
2427 PyObject* keyobj, *dataobj, *retval; in DB_put() local
2434 &keyobj, &dataobj, &txnobj, &flags, &dlen, &doff)) in DB_put()
2438 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_put()
3591 PyObject* DB_subscript(DBObject* self, PyObject* keyobj) in DB_subscript() argument
3599 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_subscript()
3611 PyErr_SetObject(PyExc_KeyError, keyobj); in DB_subscript()
3628 DB_ass_sub(DBObject* self, PyObject* keyobj, PyObject* dataobj) in DB_ass_sub() argument
3643 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_ass_sub()
3674 _DB_has_key(DBObject* self, PyObject* keyobj, PyObject* txnobj) in _DB_has_key() argument
3681 if (!make_key_dbt(self, keyobj, &key, NULL)) in _DB_has_key()
3730 PyObject* keyobj; in DB_has_key() local
3735 &keyobj, &txnobj)) in DB_has_key()
3738 return _DB_has_key(self, keyobj, txnobj); in DB_has_key()
3742 static int DB_contains(DBObject* self, PyObject* keyobj) in DB_contains() argument
3747 result = _DB_has_key(self, keyobj, NULL) ; in DB_contains()
4260 PyObject* keyobj = NULL; in DBC_get() local
4277 &keyobj, &flags, &dlen, &doff)) in DBC_get()
4281 kwnames, &keyobj, &dataobj, in DBC_get()
4291 if (keyobj && !make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_get()
4336 PyObject* keyobj = NULL; in DBC_pget() local
4353 &keyobj, &flags, &dlen, &doff)) in DBC_pget()
4357 kwnames, &keyobj, &dataobj, in DBC_pget()
4367 if (keyobj && !make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_pget()
4478 PyObject* keyobj, *dataobj; in DBC_put() local
4486 &keyobj, &dataobj, &flags, &dlen, &doff)) in DBC_put()
4491 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_put()
4514 PyObject* retval, *keyobj; in DBC_set() local
4520 &keyobj, &flags, &dlen, &doff)) in DBC_set()
4525 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_set()
4577 PyObject* retval, *keyobj; in DBC_set_range() local
4583 &keyobj, &flags, &dlen, &doff)) in DBC_set_range()
4588 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_set_range()
4634 _DBC_get_set_both(DBCursorObject* self, PyObject* keyobj, PyObject* dataobj, in _DBC_get_set_both() argument
4642 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in _DBC_get_set_both()
4684 PyObject *keyobj, *dataobj; in DBC_get_both() local
4686 if (!PyArg_ParseTuple(args, "OO|i:get_both", &keyobj, &dataobj, &flags)) in DBC_get_both()
4692 return _DBC_get_set_both(self, keyobj, dataobj, flags, in DBC_get_both()
4729 PyObject *keyobj, *dataobj; in DBC_set_both() local
4731 if (!PyArg_ParseTuple(args, "OO|i:set_both", &keyobj, &dataobj, &flags)) in DBC_set_both()
4737 return _DBC_get_set_both(self, keyobj, dataobj, flags, in DBC_set_both()
8497 PyObject* keyobj; in DBSequence_open() local
8503 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|Oi:open", kwnames, &keyobj, &txnobj, &flags)) in DBSequence_open()
8509 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBSequence_open()