See DBD::Pg and the $dbh->func( ... 'putline' ) function. This will allow you to send arbitrary text to the PostgreSQL server.
$dbh->func( q{ CREATE FUNCTION poo (INTEGER) RETURNS INTEGER AS $func$ DECLARE val ALIAS FOR $1; BEGIN RETURN val * 2; END } => 'putline' )
In reply to Re: DBD::Pg - function declaration and using alias $n
by diotalevi
in thread DBD::Pg - function declaration and using alias $n
by lestrrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |