NAME

DBIO::PostgreSQL::Diff::Trigger - Diff operations for PostgreSQL triggers

VERSION

version 0.900000

DESCRIPTION

Represents a trigger-level diff operation: CREATE TRIGGER or DROP TRIGGER. When a trigger definition changes, it produces a DROP followed by a CREATE. Triggers are compared using the full pg_get_triggerdef output.

ATTRIBUTES

table_key

The schema.table key identifying which table the trigger belongs to.

trigger_name

The trigger name.

trigger_info

Trigger metadata hashref (definition, timing, event, etc.).

METHODS

diff

my @ops = DBIO::PostgreSQL::Diff::Trigger->diff($source, $target);

Compares trigger sets per table. Definition changes produce a drop-then-create pair.

as_sql

Returns CREATE TRIGGER ...; using the full definition from introspection, or DROP TRIGGER name ON table;.

summary

Returns a one-line description such as +trigger: users_modified_at on auth.users.

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.