PyObject * AerospikeKey_Exists(AerospikeKey * key, PyObject * args, PyObject * kwds) { // Python Function Arguments PyObject * py_key = key->key; PyObject * py_policy = NULL; // Python Function Keyword Arguments static char * kwlist[] = {"policy", NULL}; // Python Function Argument Parsing if ( PyArg_ParseTupleAndKeywords(args, kwds, "|O:get", kwlist, &py_policy) == false ) { return NULL; } // Invoke Operation return AerospikeClient_Exists_Invoke(key->client, py_key, py_policy); }
/** ******************************************************************************************************* * Checks if a record exists in the Aerospike DB. * * @param self AerospikeClient object * @param args The args is a tuple object containing an argument * list passed from Python to a C function * @param kwds Dictionary of keywords * * Returns a tuple of record having key and meta sequentially. * In case of error,appropriate exceptions will be raised. ******************************************************************************************************* */ PyObject * AerospikeClient_Exists(AerospikeClient * self, PyObject * args, PyObject * kwds) { // Python Function Arguments PyObject * py_key = NULL; PyObject * py_policy = NULL; // Python Function Keyword Arguments static char * kwlist[] = {"key", "policy", NULL}; // Python Function Argument Parsing if ( PyArg_ParseTupleAndKeywords(args, kwds, "O|O:exists", kwlist, &py_key, &py_policy) == false ) { return NULL; } // Invoke Operation return AerospikeClient_Exists_Invoke(self, py_key, py_policy); }