PyObject * AerospikeKey_Remove(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_Remove_Invoke(key->client, py_key, py_policy); }
/** ******************************************************************************************************* * Removes a particular record matching with the given key. * * @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 an integer status. 0(Zero) is success value. * In case of error,appropriate exceptions will be raised. ******************************************************************************************************* */ PyObject * AerospikeClient_Remove(AerospikeClient * self, PyObject * args, PyObject * kwds) { // Python Function Arguments PyObject * py_key = NULL; PyObject * py_policy = NULL; PyObject * py_meta = NULL; // Python Function Keyword Arguments static char * kwlist[] = {"key", "meta", "policy", NULL}; // Python Function Argument Parsing if ( PyArg_ParseTupleAndKeywords(args, kwds, "O|OO:remove", kwlist, &py_key, &py_meta, &py_policy) == false ) { return NULL; } // Invoke Operation return AerospikeClient_Remove_Invoke(self, py_key, py_meta, py_policy); }