NAME

DBIO::PostgreSQL::Diff::Schema - Diff operations for PostgreSQL schemas

VERSION

version 0.900000

DESCRIPTION

Represents a single schema (namespace) diff operation: CREATE SCHEMA or DROP SCHEMA CASCADE. Instances are produced by the "diff" class method and consumed by DBIO::PostgreSQL::Diff.

ATTRIBUTES

schema_name

The PostgreSQL schema name being created or dropped.

schema_name

The PostgreSQL schema name being created or dropped.

METHODS

diff

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

Compares two schema hashrefs (as from DBIO::PostgreSQL::Introspect::Schemas) and returns a list of DBIO::PostgreSQL::Diff::Schema objects representing schemas to create or drop.

as_sql

Returns the SQL statement for this operation: CREATE SCHEMA name; or DROP SCHEMA name CASCADE;.

summary

Returns a one-line human-readable description such as +schema: auth or -schema: old_ns.

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.