Changes

From SME Server
Jump to navigationJump to search
318 bytes added ,  14:49, 24 December 2014
Line 191: Line 191:  
If the optional type option is passed, it will be used to create the record if it does not already exist. Otherwise, a non-existent record will cause this method to return an error.
 
If the optional type option is passed, it will be used to create the record if it does not already exist. Otherwise, a non-existent record will cause this method to return an error.
 
Returns 0 for any errors, 1 for success.
 
Returns 0 for any errors, 1 for success.
 +
===== delete_prop =====
 +
        my $dbkey = $db->get("$key");
 +
        $dbkey->delete_prop("$prop");
 +
or 
 +
        db->get("$key")->delete_prop("$prop");
 +
method to delete a propriety $prop of the key $key
 +
 +
===== delete =====
 +
 +
        my $dbkey = $DB->get('$key');
 +
        $dbkey->delete;
 +
 +
a method to delete a key
 +
 
===== keys =====
 
===== keys =====
  

Navigation menu