Project

General

Profile

Feature #5235

SPI Object and not function

Added by Moisés P. Sena over 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/29/2010
Due date:
% Done:

0%

Estimated time:
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)

No data to display

Also available in: Atom PDF