NAME

DBIO::Generate::Relationships - Relationship inference for DBIO::Generate

VERSION

version 0.900000

METHODS

generate_code

my $code = $r->generate_code($tables, $class_for, $pk_for);

Takes an arrayref of [ $moniker, \@fk_info, \@uniq_info ]. Each FK info hashref must have remote_moniker (not remote_table). class_for maps moniker → class name string. pk_for maps moniker → PK column arrayref.

Returns hashref { $moniker => [ { method, args, extra }, ... ] }.

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.