NAME

dbic-mockdata - Generate mock test data for a DBIx::Class schema

VERSION

Version 0.02

SYNOPSIS

dbic-mockdata --schema-dir /path/to/lib \
              --namespace MyApp::Schema \
              --dsn "dbi:SQLite:dbname=test.db" [options]

DESCRIPTION

Connects the given DBIx::Class schema and hands it to DBIx::Class::MockData to generate and insert mock rows.

OPTIONS

--schema-dir   Directory containing the schema classes           (required)
--namespace    Top-level schema package name, e.g. MyApp::Schema (required)
--dsn          DBI DSN string, e.g. "dbi:Pg:dbname=mydb"         (required)
--user         Database username
--password     Database password
--rows         Rows to insert per table (default: 5)
--seed         Random seed for reproducible output
--deploy       Create tables that do not yet exist
--wipe         Drop and recreate all tables before inserting (destructive)
--dry-run      Print generated values without inserting
--verbose      Print debug output
--help         Show this help