ANN: PostgreSQL support in DBIx::ProcedureCall

From: Thilo Planz (thilo.planz_at_gaiax.co.jp)
Date: 02/14/05

  • Next message: patrickg: "Re: DBI error checking not working"
    To: dbi-users@perl.org
    Date: Mon, 14 Feb 2005 20:31:38 +0900
    
    

    Hi all,

    the new version (0.07) of DBIx::ProcedureCall has support for
    PostgreSQL (in addition to Oracle) now.

    So if you have functions like these:

    1) CREATE FUNCTION some_select() RETURNS SETOF pg_user AS $$
         SELECT * FROM pg_user;
    $$ LANGUAGE SQL;

    2) the built-in power(number, number)

    You can call them from Perl like so:

    use DBIx::ProcedureCall qw(
            some_select:fetch[[]]
            power
    );

    my $conn = DBI->conn(.....);

    # 1)
    my $array_or_arrays = some_select($conn);

    # 2)
    my $power = power($conn, 5, 3); # should be 125

            

    Oracle users, too, might be interested in some of the more recent
    features:

    - table functions
    - functions that return cursors
    - OUT and INOUT parameters

    Now on CPAN, feedback and questions appreciated:

    http://search.cpan.org/dist/DBIx-ProcedureCall/

    Cheers,

    Thilo


  • Next message: patrickg: "Re: DBI error checking not working"

    Relevant Pages

    • Re: What so special about PostgreSQL and other RDBMS?
      ... That's exactly the link the licence agreement for the database points to when it ... comes to what wecan expect for paying support. ... > "Oracle may provide additional releases or versions of its programs ... If the requirements are volatile I'd do a long term contract detailing what ...
      (comp.lang.php)
    • Re: What so special about PostgreSQL and other RDBMS?
      ... "Oracle may provide additional releases or versions of its programs ... in the form of an Update as part of our technical support services. ... cucumber vendor that insisted I could only buy cucumbers from them, ... If I have the source code, I know I can relly on a product for ever, ...
      (comp.lang.php)
    • Re: Problem when WIndows 2000 Server is rebooted
      ... who were not forced, as a contract condition, to support versions of the ... a currently supported version of the Oracle database. ... support a version of the Oracle database that is under active Oracle ...
      (comp.databases.oracle.server)
    • ANNOUNCE: DBD::Oracle 1.17 *RELEASE CANDIDATE* RC6
      ... Oracle configurations are almost ... Fixed truncation error on fetch into UTF8 charset thanks to Honza Pazdziora. ... Added support for nested cursors in select lists thanks to Charles Jardine. ... clarifying examples thanks to Charles Jardine. ...
      (perl.dbi.users)
    • Re: What so special about PostgreSQL and other RDBMS?
      ... > differences between PostgreSQL and those high-price commercial database (and ... > some are bloated such as Oracle) from software giant such as Microsoft SQL ... and also the support. ...
      (comp.lang.php)