• 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()
1796 PyObject* keyobj; in DB_delete() local
1802 &keyobj, &txnobj, &flags)) in DB_delete()
1805 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_delete()
1901 PyObject* keyobj; in DB_exists() local
1908 &keyobj, &txnobj, &flags)) in DB_exists()
1912 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_exists()
1949 PyObject* keyobj; in DB_get() local
1960 &keyobj, &dfltobj, &txnobj, &flags, &dlen, in DB_get()
1965 if (!make_key_dbt(self, keyobj, &key, &flags)) in DB_get()
2015 PyObject* keyobj; in DB_pget() local
2026 &keyobj, &dfltobj, &txnobj, &flags, &dlen, in DB_pget()
2031 if (!make_key_dbt(self, keyobj, &key, &flags)) in DB_pget()
2110 PyObject* keyobj; in DB_get_size() local
2117 &keyobj, &txnobj)) in DB_get_size()
2120 if (!make_key_dbt(self, keyobj, &key, &flags)) in DB_get_size()
2152 PyObject* keyobj; in DB_get_both() local
2161 &keyobj, &dataobj, &txnobj, &flags)) in DB_get_both()
2165 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_get_both()
2303 PyObject* keyobj; in DB_key_range() local
2310 &keyobj, &txnobj, &flags)) in DB_key_range()
2313 if (!make_dbt(keyobj, &key)) in DB_key_range()
2403 PyObject* keyobj, *dataobj, *retval; in DB_put() local
2410 &keyobj, &dataobj, &txnobj, &flags, &dlen, &doff)) in DB_put()
2414 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_put()
3567 PyObject* DB_subscript(DBObject* self, PyObject* keyobj) in DB_subscript() argument
3575 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_subscript()
3587 PyErr_SetObject(PyExc_KeyError, keyobj); in DB_subscript()
3604 DB_ass_sub(DBObject* self, PyObject* keyobj, PyObject* dataobj) in DB_ass_sub() argument
3619 if (!make_key_dbt(self, keyobj, &key, NULL)) in DB_ass_sub()
3650 _DB_has_key(DBObject* self, PyObject* keyobj, PyObject* txnobj) in _DB_has_key() argument
3657 if (!make_key_dbt(self, keyobj, &key, NULL)) in _DB_has_key()
3706 PyObject* keyobj; in DB_has_key() local
3711 &keyobj, &txnobj)) in DB_has_key()
3714 return _DB_has_key(self, keyobj, txnobj); in DB_has_key()
3718 static int DB_contains(DBObject* self, PyObject* keyobj) in DB_contains() argument
3723 result = _DB_has_key(self, keyobj, NULL) ; in DB_contains()
4236 PyObject* keyobj = NULL; in DBC_get() local
4253 &keyobj, &flags, &dlen, &doff)) in DBC_get()
4257 kwnames, &keyobj, &dataobj, in DBC_get()
4267 if (keyobj && !make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_get()
4312 PyObject* keyobj = NULL; in DBC_pget() local
4329 &keyobj, &flags, &dlen, &doff)) in DBC_pget()
4333 kwnames, &keyobj, &dataobj, in DBC_pget()
4343 if (keyobj && !make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_pget()
4454 PyObject* keyobj, *dataobj; in DBC_put() local
4462 &keyobj, &dataobj, &flags, &dlen, &doff)) in DBC_put()
4467 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_put()
4490 PyObject* retval, *keyobj; in DBC_set() local
4496 &keyobj, &flags, &dlen, &doff)) in DBC_set()
4501 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_set()
4553 PyObject* retval, *keyobj; in DBC_set_range() local
4559 &keyobj, &flags, &dlen, &doff)) in DBC_set_range()
4564 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBC_set_range()
4610 _DBC_get_set_both(DBCursorObject* self, PyObject* keyobj, PyObject* dataobj, in _DBC_get_set_both() argument
4618 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in _DBC_get_set_both()
4660 PyObject *keyobj, *dataobj; in DBC_get_both() local
4662 if (!PyArg_ParseTuple(args, "OO|i:get_both", &keyobj, &dataobj, &flags)) in DBC_get_both()
4668 return _DBC_get_set_both(self, keyobj, dataobj, flags, in DBC_get_both()
4705 PyObject *keyobj, *dataobj; in DBC_set_both() local
4707 if (!PyArg_ParseTuple(args, "OO|i:set_both", &keyobj, &dataobj, &flags)) in DBC_set_both()
4713 return _DBC_get_set_both(self, keyobj, dataobj, flags, in DBC_set_both()
8473 PyObject* keyobj; in DBSequence_open() local
8479 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|Oi:open", kwnames, &keyobj, &txnobj, &flags)) in DBSequence_open()
8485 if (!make_key_dbt(self->mydb, keyobj, &key, NULL)) in DBSequence_open()