NAME

SQL::DB::Deploy - SQL::DB Role for deployment support

VERSION

0.97_2. Development release.

SYNOPSIS

use SQL::DB;
use SQL::DB::Deploy;

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

$db->deploy('myseq', $arrayref);
my $id = $db->last_deploy_id;

DESCRIPTION

SQL::DB::Deploy is a Role class providing deployment support for SQL::DB.

METHODS

deploy( $app, $array_ref )

Deploy the [ $type, $data ] pairs contained in $array_ref to the database. Only $array_ref elements greater than the previous deployment count (stored in the _sqldb table) will be deployed.

last_deploy_id( $app )

Returns the count of all deployments.

SEE ALSO

SQL::DB, Moo::Role

AUTHOR

Mark Lawrence <nomad@null.net>

COPYRIGHT AND LICENSE

Copyright (C) 2011 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.