Доброго всем ¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !

DBIx::POS::Template

DBIx::POS::Template - is a fork of DBIx::POS. Define a dictionary of SQL statements in a POD dialect (POS) plus expand template sql with embedded Perl by Text::Template.

SYNOPSIS

use DBIx::POS::Template;

my $pos = DBIx::POS::Template->new(__FILE__, enc=>'utf8');
# or singleton DBIx::POS::Template->instance($file, ...);

my $sql = $pos->{test1}->template(where => "bar = ?");
# or
$sql = $pos->template('test1', where => "bar = ?");

=pod

=name test1

=desc test the DBIx::POS::Template module

=param

Some arbitrary parameter

=sql

  select * from foo
  where {% $where %}
  ;

=cut

SEE ALSO

Pod::Parser

DBIx::POS

Text::Template

AUTHOR

Михаил Че (Mikhail Che), <mche[-at-]cpan.org>

COPYRIGHT

Copyright 2016 Mikhail Che.

This module is free software; you can redistribute it and/or modify it under the term of the Perl itself.