This package make stored procedures from PostgreSQL and others SGDB can used as PHP Methods. You have PDOStatement as answer like in this sample:
-- in database dev create or replace function teste() returns varchar(10) as $$ begin return 'teste'; end; $$ language 'plpgsql';
$a = new PDO("pgsql:host=localhost;port=5432;dbname=dev;user=postgres;password=root"); $pl2method = \PEAR2\DB\Pl2Method\Pl2Method::getInstance($a);
here you have a PDOStatement $returned = $pl2method->public->teste(); var_dump( $returned ); and You can FetchAll() var_dump($returned->FetchAll());
Release Notes - 0.1.0
Package PEAR2_DB_Pl2Method release notes for version 0.1.0. Support to just Psql PDO Driver without type validation yet
Package PEAR2_DB_Pl2Method API release notes for version 0.1.0.
Categories
Installation
| Status: | 0.1.0 alpha, released on August 7, 2011 |
|---|---|
| License: | New BSD License |
| Documentation: | GitHub Wiki |
| Issues: | none open, 1 closed |
| Maintainers: |
|
Release History
| 0.1.0 | alpha | August 7, 2011 |
Browse Files
12 files in 16 directories.Dependencies for PEAR2_DB_Pl2Method
- PHP ≥ 5.2.0
