perl-PGObject-Composite - Composite Type Mapper for PGObject

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-PGObject-Composite
Package version 1.000002
Package release alt1
Package architecture noarch
Package type rpm
Installed size 12.24 KB
Download size 12.24 KB
Official Mirror
This module provides a more object-oriented type of interface for writing
stored procedures for PostgreSQL than the Simple mapper.  The Composite mapper
assumes that the object calling the call_dbmethod function usually wants its
type on the first argument.  Thus we provide an extra function where this is
not the case (call_dbfunction).
So we given a cumposite type:
CREATE TYPE foo AS (bar int, baz text);
and a stored procedure:
CREATE OR REPLACE FUNCTION int(foo) returns int language sql as $$
SELECT length($1.baz) + $;
We can have a package:
package mycomposite;
use PGObject::Composite;
sub new {
my $pkg = shift;
bless shift, $pkg;
sub to_int {
my $self = shift;
my ($ref) = $shelf->call_dbmethod(funcname => 'int');
return shift values %$ref;


Package Version Architecture Repository
perl-PGObject-Composite - - -


Name Value
/usr/share/perl5 -
perl( >= 1.402.004
perl(PGObject/Type/ -
perl( -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -


Name Value
perl(PGObject/ = 1.0.002
perl-PGObject-Composite = 1.000002-alt1


Type URL
Binary Package perl-PGObject-Composite-1.000002-alt1.noarch.rpm
Source Package perl-PGObject-Composite-1.000002-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-PGObject-Composite rpm package:
    # sudo apt-get install perl-PGObject-Composite



See Also

Package Description
perl-PGObject-Composite-Role-1-alt1.noarch.rpm A Moo role interface for PGObject::Composite
perl-PGObject-Simple-3.000002-alt1.noarch.rpm Minimalist stored procedure mapper based on LedgerSMB's DBObject
perl-PGObject-Simple-Role-2.000002-alt2.noarch.rpm Moo/Moose mappers for minimalist PGObject framework
perl-PGObject-Type-BigFloat-2.001-alt1.noarch.rpm Math::BigFloat wrappers for PGObject classes
perl-PGObject-Type-ByteString-1.2.3-alt1.noarch.rpm Wrapper for raw strings mapping to BYTEA columns
perl-PGObject-Type-Composite-1-alt1.noarch.rpm Composite Type handler for PGObject
perl-PGObject-Type-DateTime-2.000001-alt1.noarch.rpm DateTime Wrappers for PGObject
perl-PGObject-Type-JSON-2.000001-alt1.noarch.rpm JSON wrappers for PGObject
perl-PGObject-Util-AsyncPool-0.03-alt1.noarch.rpm An Async Connection Pooler for PGObject
perl-PGObject-Util-BulkLoad-0.06-alt1.noarch.rpm Bulk load records into PostgreSQL
perl-PGObject-Util-Catalog-Types-0.03-alt1.noarch.rpm Utilities for working with Composite types
perl-PGObject-Util-DBAdmin-0.130.1-alt1.noarch.rpm PostgreSQL Database Management Facilities for
perl-PGObject-Util-DBChange-0.050.2-alt1.noarch.rpm The great new PGObject::Util::DBChange!
perl-PGObject-Util-DBMethod-1.00.002-alt1.noarch.rpm Declarative stored procedure <-> object mappings for
perl-PGObject-Util-PGConfig-0.02-alt1.noarch.rpm Postgres Configuration Management