Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

ngs-archives/p5-dbix-class-storage-dbi-mysql-backup

Repository files navigation

NAME

DBIx::Class::Storage::DBI::mysql::backup

SYNOPSIS

package MyApp::Schema;
use base qw/DBIx::Class::Schema/;


our $VERSION = 0.001;


__PACKAGE__->load_classes(qw/CD Book DVD/);
__PACKAGE__->load_components(qw/
    Schema::Versioned
    Storage::DBI::mysql::backup
/);

DESCRIPTION

Adds backup method to DBIx::Class::Storage::DBI::mysql.

This plugin enables LDBIx::Class::Schema::Versioned/backup when using MySQL.

FUNCTIONS

backup ( $to_dir )

writes SQL file as backup_filename to $to_dir. returns SQL filename.

backup_filename

returns filename of backup $DB_NAME-YYYYMMDD-hhmmss.sql

dump

returns dumped SQL

SEE ALSO

DBIx::Class::Schema::Versioned

MySQL::Backup

AUTHOR

Atsushi Nagase ngs@cpan.org

COPYRIGHT AND LICENSE

Copyright (C) 2011 Atsushi Nagase ngs@cpan.org

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

About

Add C<backup> to L<DBIx::Class::Storage::DBI::mysql> for support L<DBIx::Class::Schema::Versioned/backup>

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages