PEAR2_DB_Pl2Method-0.1.0package.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<package version="2.1" xmlns="http://pear.php.net/dtd/package-2.1" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0     http://pear.php.net/dtd/tasks-1.0.xsd     http://pear.php.net/dtd/package-2.1     http://pear.php.net/dtd/package-2.1.xsd">
 <name>PEAR2_DB_Pl2Method</name>
 <channel>pear2.php.net</channel>
 <summary>Library for accessing stored procedures as PHP Method
</summary>
 <description>
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(&quot;pgsql:host=localhost;port=5432;dbname=dev;user=postgres;password=root&quot;);
$pl2method = \PEAR2\DB\Pl2Method\Pl2Method::getInstance($a);

here you have a PDOStatement
$returned = $pl2method-&gt;public-&gt;teste();
var_dump( $returned );
 and You can FetchAll()
var_dump($returned-&gt;FetchAll());
</description>
 <lead>
  <name>Ivo Nascimento</name>
  <user>ivonascimento</user>
  <email>ivo@o8o.com.br</email>
  <active>yes</active>
 </lead>
 <date>2011-08-07</date>
 <time>18:36:05</time>
 <version>
  <release>0.1.0</release>
  <api>0.1.0</api>
 </version>
 <stability>
  <release>alpha</release>
  <api>alpha</api>
 </stability>
 <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
 <notes>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.</notes>
 <contents>
  <dir name="/">
   <file role="php" name="php/PEAR2/DB/Pl2Method/SGDBInterface.php"/>
   <file role="php" name="php/PEAR2/DB/Pl2Method/SGDBDriver.php"/>
   <file role="php" name="php/PEAR2/DB/Pl2Method/Driver/Pgsql.php"/>
   <file role="php" name="php/PEAR2/DB/Pl2Method/.gitignore"/>
   <file role="php" name="php/PEAR2/DB/Pl2Method.php"/>
   <file role="doc" name="doc/pear2.php.net/PEAR2_DB_Pl2Method/examples/examples/teste.php"/>
  </dir>
 </contents>
 <dependencies>
  <required>
   <php>
    <min>5.2.0</min>
   </php>
   <pearinstaller>
    <min>1.4.8</min>
   </pearinstaller>
  </required>
 </dependencies>
 <phprelease>
  <filelist>
   <install name="doc/pear2.php.net/PEAR2_DB_Pl2Method/examples/examples/teste.php" as="PEAR2_DB_Pl2Method/examples/examples/teste.php"/>
   <install name="php/PEAR2/DB/Pl2Method.php" as="PEAR2/DB/Pl2Method.php"/>
   <install name="php/PEAR2/DB/Pl2Method/.gitignore" as="PEAR2/DB/Pl2Method/.gitignore"/>
   <install name="php/PEAR2/DB/Pl2Method/Driver/Pgsql.php" as="PEAR2/DB/Pl2Method/Driver/Pgsql.php"/>
   <install name="php/PEAR2/DB/Pl2Method/SGDBDriver.php" as="PEAR2/DB/Pl2Method/SGDBDriver.php"/>
   <install name="php/PEAR2/DB/Pl2Method/SGDBInterface.php" as="PEAR2/DB/Pl2Method/SGDBInterface.php"/>
  </filelist>
 </phprelease>
</package>
EOF