PHP » PYTHON |
login |
register |
about
|
PYTHON SQLite3::createAggregate
is this article helpful?
|
Python replacement for PHP's SQLite3::createAggregate
[
edit
| history
]
class MyAggregateClass def step(self, num_params): pass # step callback here def finalize(self): pass # final callback here db.create_aggregate(name, argument_count, MyAggregateClass) SQLite3::createAggregate(PHP 5 >= 5.3.0) SQLite3::createAggregate — Registers a PHP function for use as an SQL aggregate function Description
public bool SQLite3::createAggregate
( string $name
, mixed $step_callback
, mixed $final_callback
[, int $argument_count= -1
] )
Registers a PHP function or user-defined function for use as an SQL aggregate function for use within SQL statements. Parameters
Return ValuesReturns TRUE upon successful creation of the aggregate, FALSE on failure. |
more
Recently updated
more
Most requested
|