Changes for version 0.900000 - 2026-06-23

  • First release. IBM DB2 driver for DBIO with native introspection, diff, DDL generation and test-deploy-and-compare deployment.
  • Storage
    • DB2 storage driver, autodetected from dbi:DB2: DSNs
    • -db2 shortcut and DBIO::DB2 schema component pin the driver
    • DateTime::Format::DB2 datetime parsing, "-quoted identifiers, schema-qualified table references, last_insert_id support
  • SQLMaker
    • DB2 LIMIT/OFFSET dialect via apply_limit: ROW_NUMBER() OVER() for offset, FETCH FIRST n ROWS ONLY otherwise
  • Introspect (SYSCAT + information_schema)
    • tables, columns, indexes and foreign keys from SYSCAT
    • GENERATED AS IDENTITY captured as is_auto_increment for DBIO::Generate
    • PK-backing index tagged origin=>'pk' so inherited table_uniq_info drops it; built on DBIO::Introspect::Base canonical shape
  • Diff
    • native DB2 model diff (table/column/index/foreign key) on DBIO::Diff::Op, using changed_column_fields / changed_index_fields / changed_fk_fields from DBIO::Diff::Compare
    • foreign-key changes on existing tables emitted as ALTER TABLE ADD/DROP CONSTRAINT (drop-then-add for a changed FK)
  • DDL
    • generate DB2 DDL from Result classes
    • emit named inline FOREIGN KEY constraints (deterministic fk_<table>_<cols> names) that round-trip through introspection
    • emit CREATE VIEW for non-virtual views (from view_definition) after all tables
  • Deploy
    • test-deploy-and-compare deployment on DBIO::Deploy::Base (install/diff/apply/upgrade), with DB2-specific target model built via a throwaway CREATE SCHEMA

Documentation

Modules

IBM DB2-specific schema management for DBIO
Generate DB2 DDL from DBIO Result classes
Deploy and upgrade DB2 schemas via test-deploy-and-compare
Compare two introspected DB2 models
Diff operations for DB2 columns
Diff operations for DB2 foreign keys
Diff operations for DB2 indexes
Diff operations for DB2 tables
Introspect a DB2 database via SYSCAT + information_schema
Introspect DB2 columns
Introspect DB2 foreign keys
Introspect DB2 indexes
Introspect DB2 tables and views
SQL dialect for IBM DB2
IBM DB2 support for DBIO
DB2 column type utilities
`use DBIO -db2` shortcut for the DB2 driver