|
TokyoTyrantTable::putKeepPut a new record Beschreibung
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. Parameter-Liste
RückgabewerteReturns the primary key and throws TokyoTyrantException on error. Beispiele
Beispiel #1 TokyoTyrantTable::putKeep example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
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"
}
Siehe auch
|