Feature #5235

SPI Object and not function

Added by Mois├ęs P. Sena 07/29/2010 (over 11 years) ago.

Status:NewStart date:07/29/2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:

Description

Today it uses the functions "SPI_ *" to perform query on database. It would be interesting if there was an object with methods to this question, style "PDO".

For example:

// of "SELECT PG_get_exp('x','y','z')" to
$fnResult = PG::fn->pg_get_exp('x','y','z')

$status = PG::status()
$chages = PG::exec()

$res = PG::query()
$res->count()
$res->next()
$res->rewind()

$item = $res->fetchRow()
$item = $res->fetchObject()
$item = $res->fetchArray()

or

while(($item = $res->fetchObject('ns\Class'))!=null)

Also available in: Atom PDF