I use the function to insert or update records in a table, but sometimes I would like to know whether the function has executed an update or an insert. In my scenario I always provide the primary key:
drupal_write_record('mytable',$entry,'key');
The function inserts a record if $entry['key'] does not exists and updates the record with the new information otherwise.
Is there somewhere I can check to see what the function has done ?
