man Tangram::Pg () - Orthogonal Object Persistence in PostgreSQL databases
NAME
Tangram::Pg - Orthogonal Object Persistence in PostgreSQL databases
SYNOPSIS
use Tangram; use Tangram::Pg;
$schema = Tangram::Pg->schema( $hashref );
Tangram::Pg->deploy($schema, $dbh);
$storage = Tangram::Pg->connect( $schema, $data_source, $username, $password );
$storage->disconnect();
Tangram::Pg->retreat($schema, $dbh);
DESCRIPTION
This is the entry point in the Pg-specific object-relational persistence backend.
This module performs the following:
METHODS
This backend does not add any methods; for a description of available methods, see Tangram::Relational.
ERRATA
Tangram::Storable objects are first encoded with MIME::Base64, because Tangram does not currently have an easy mechanism for calling CWDBI->bind_param() at the appropriate time to flag the column as binary.
Tangram::PerlDump objects are stored as CWBYTEA columns, which as of DBD::Pg 1.31, also do not get correctly escaped by the DBD driver. This also affects the (as-yet not fully functional) Tangram::YAML back-end, which might put CW\ characters into a YAML document.
It is recommended to use the CWstorable type with Tangram::IDBIF for this reason.