Logo Search packages:      
Sourcecode: qdbm version File versions  Download package

void Villa::out ( const char *  kbuf,
int  ksiz 
) throw (Villa_error) [virtual]

Delete a record.

kbuf the pointer to the region of a key.
ksiz the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'.
Villa_error if an error occurs or no record corresponds.
When the key of duplicated records is specified, the first record of the same key is deleted. The cursor becomes unavailable due to updating database.

Definition at line 233 of file xvilla.cc.

References qdbm::mutex, and villa.

  if(!villa) throw Villa_error();
  if(pthread_mutex_lock(&mutex) != 0) throw Villa_error();
  if(!vlout(villa, kbuf, ksiz)){
    throw Villa_error(dpecode);

Generated by  Doxygen 1.6.0   Back to index