NAME

App::DrivePlayer::Schema - DBIx::Class schema for the DrivePlayer SQLite database

DESCRIPTION

A DBIx::Class::Schema subclass that owns the scan_folders, folders, and tracks result classes. Use "connect_and_deploy" rather than the inherited connect to ensure the SQLite pragmas and tables are set up correctly.

METHODS

connect_and_deploy

my $schema = App::DrivePlayer::Schema->connect_and_deploy($path);

Connect to the SQLite database at $path, enable WAL journal mode and foreign-key enforcement, and deploy the schema (create tables) if the database is new. Returns the connected schema object.