NAME

App::Zapzi::Database - database access for Zapzi

VERSION

version 0.012

DESCRIPTION

This class provides access to the Zapzi database.

ATTRIBUTES

app

Link to the App::Zapzi application object.

METHODS

database_file

The SQLite file where the database is stored.

dsn

The DSN used to connect to the SQLite database.

schema

The DBIx::Class::Schema object for the application.

init

Initialise the database to a new state.

get_version

Returns the version of the schema defined in the database

check_version

Compares the version of the schema in the database to that in the code. Return true if they match, undef if not.

upgrade

Upgrades the database to the current schema version.

AUTHOR

Rupert Lane <rupert@rupert-lane.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Rupert Lane.

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