PHP » GoLang |
login |
register |
about
|
GoLang TokyoTyrantTable::putKeep
request it (349)
GoLang replacement for PHP's TokyoTyrantTable::putKeep
[edit | history]
TokyoTyrantTable::putKeep(PECL tokyo_tyrant >= 0.1.0) TokyoTyrantTable::putKeep — Put 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" } |
more
Recently updated
more
Most requested
more
Last requests
|