NAME
DBIO::Informix::Diff::Table - Diff operations for Informix tables
VERSION
version 0.900007
DESCRIPTION
Represents a table-level diff operation in Informix: CREATE TABLE or DROP TABLE. The SQL is generated directly from the introspected target columns and the PK constraint inline. Foreign keys are never part of the CREATE TABLE: the referenced table may be created later in the same diff, so they follow as ALTER TABLE ... ADD CONSTRAINT from DBIO::Informix::Diff::ForeignKey.
ATTRIBUTES
replaced
True for the drop of a view that is the first half of a drop + create of that view with another definition: it replaces the view and drops none, so it counts as changing, not destructive (core ADR 0080, "destructive_operations" in DBIO::Diff::Base).
METHODS
diff
my @ops = DBIO::Informix::Diff::Table->diff(
$source_tables, $target_tables,
$target_columns,
);
Compares two table hashrefs (keyed by table name) and returns create ops for tables present only in target and drop ops for tables only in source. Custom walk (rather than DBIO::Diff::Op::diff_toplevel) because the create op needs the target's column metadata inlined for as_sql to emit a complete CREATE TABLE body.
is_view
True when the operation is on a view.
as_sql
Returns the SQL for this operation. For create, emits a full CREATE TABLE. For drop, emits DROP TABLE.
summary
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.