PHP » GoLang |
login |
register |
about
|
GoLang TokyoTyrantTable::putCat
request it (357)
GoLang replacement for PHP's TokyoTyrantTable::putCat
[edit | history]
TokyoTyrantTable::putCat(PECL tokyo_tyrant >= 0.1.0) TokyoTyrantTable::putCat — Concatenates to a row Description
public void TokyoTyrantTable::putCat
( string
$key
, array $columns
)This method can be used to add new columns to existing records. Existing keys will be left unmodified but any new columns will be appended to the row. Passing null as key will generate a new row. Parameters
Return ValuesReturns the primary key and throws TokyoTyrantException on error. Examples
Example #1 TokyoTyrantTable::putCat() example
<?php The above example will output: array(2) { ["column1"]=> string(9) "some data" ["column2"]=> string(9) "more data" } array(3) { ["column1"]=> string(9) "some data" ["column2"]=> string(9) "more data" ["new_column"]=> string(10) "other data" } |
more
Recently updated
more
Most requested
more
Last requests
|