NAME

DBIO::Firebird::Introspect::ForeignKeys - Introspect Firebird foreign keys via rdb$relation_constraints

VERSION

version 0.900000

DESCRIPTION

Fetches foreign-key metadata via rdb$relation_constraints joined against rdb$index_segments and rdb$indices. Composite FKs are grouped by constraint name.

METHODS

fetch

my $fks = DBIO::Firebird::Introspect::ForeignKeys->fetch($dbh, $tables);

Returns a hashref keyed by table name, each value an arrayref of FK hashrefs with: fk_id, from_columns, to_table, to_columns, on_update, on_delete, match.

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.