NAME

DBIO::Generate - Driver-agnostic Result class generator for DBIO

VERSION

version 0.900004

METHODS

new

my $gen = DBIO::Generate->new(%args);

Constructs the generator. Applies a handful of defaults explicitly (dump_directory, result_base_class, use_namespaces, generate_pod, style, moniker_parts, moniker_part_separator, allow_extra_m2m_cols, quiet), then assigns every remaining %args key that has a matching accessor (see the mk_group_accessors list above).

Earlier revisions asked a now-removed overridden() helper whether to skip a key here; the helper always returned undef (the implementation relied on a __is_accessor flag the codebase never set), so the !overridden(...) check was always true and the assignment was always performed. The explicit assignments above it make the duplicate harmless, but carrying the dead check forward only invited future regressions.

dump

$gen->dump($introspect);

Iterates over $introspect-table_keys>, builds moniker + class name, infers relationships via DBIO::Generate::Relationships, and writes one .pm per table using the configured Style emitter.

$introspect must implement the normalized contract defined in DBIO::Introspect::Base.

AUTHOR

DBIO & DBIx::Class Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.

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