|
TokyoTyrantTable::putKeepPut a new record Description
public void TokyoTyrantTable::putKeep
( string
$key
, array $columns
)Puts a new record into the database. If the key already exists this method throws an exception indicating that the records exists. Parameters
Return ValuesReturns the primary key and throws TokyoTyrantException on error. Examples
Example #1 TokyoTyrantTable::putKeep example
<?php The above example will output something similar to: array(2) { ["column1"]=> string(9) "some data" ["column2"]=> string(9) "more data" } Existing record! Not modified array(2) { ["column1"]=> string(9) "some data" ["column2"]=> string(9) "more data" } See Also
|