Mark Lawrence > SQL-DB-0.971.0 > SQL::DBx::Pg

Download:
SQL-DB-0.971.0.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  2
View/Report Bugs
Module Version: 0.971.0   Source  

NAME ^

SQL::DBx::Pg - add various features to Pg

VERSION ^

0.971.0. Development release.

SYNOPSIS ^

    use SQL::DB;
    use SQL::DBx::Pg;

    my $db = SQL::DB->connect($dsn);

    $db->nextval('sequence');
    $db->currval('sequence');

DESCRIPTION ^

SQL::DBx::Pg adds the nextval() and currval() convenience methods to SQL::DB.

METHODS ^

nextval( $name ) -> Int

Advance the sequence to its next value and return that value.

currval( $name ) -> Int

Return the current value of the sequence.

SEE ALSO ^

SQL::DB, Moo::Role

AUTHOR ^

Mark Lawrence <nomad@null.net>

COPYRIGHT AND LICENSE ^

Copyright (C) 2012 Mark Lawrence <nomad@null.net>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

syntax highlighting: