The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::TagDB::Migration - Work with Tag databases

VERSION

version v0.02

SYNOPSIS

    use Data::TagDB;

    my Data::TagDB $db = Data::TagDB->new(...);
    $db->migration->upgrade;

    use Data::TagDB::Migration;
    my Data::TagDB $db = Data::TagDB::Migration->create(...);

Create with or upgrade database to current schema.

METHODS

upgrade

    $db->migration->upgrade;

Upgrade database to current schema. Also ensures all required base objects are present.

create

    my Data::TagDB $db = Data::TagDB::Migration->create(...);

Creates a database and returns an handle to it. This function takes the same arguments as "new" in Data::TagDB.

db

    my Data::TagDB $db = $migration->db;

Returns the current Data::TagDB object.

dbh

    my $dbh = $migration->dbh;

Returns the current DBI connection.

include

    $migration->include(...);
    # e.g:
    $migration->include('Data::TagDB::WellKnown');

Includes data from a given source.

AUTHOR

Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2024 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)