NAME
DBIO::PostgreSQL::Diff::Function - Diff operations for PostgreSQL functions
VERSION
version 0.900000
DESCRIPTION
Represents a function-level diff operation: CREATE FUNCTION, DROP FUNCTION, or CREATE OR REPLACE FUNCTION (when the definition has changed). Function identity is by the full signature key schema.name(identity_args).
ATTRIBUTES
function_key
The function's identity string: schema.name(args).
function_info
Function metadata hashref (definition, language, return_type, etc.).
METHODS
diff
my @ops = DBIO::PostgreSQL::Diff::Function->diff($source, $target);
Compares function hashrefs by identity key. Produces create, replace (definition changed), or drop operations.
as_sql
Returns the SQL. For create and replace, emits the full function definition from introspection. For drop, returns DROP FUNCTION key;.
summary
Returns a one-line description such as +function: auth.update_modified_at().
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.