NAME
DBIO::DB2::Introspect::Columns - Introspect DB2 columns
VERSION
version 0.900000
DESCRIPTION
Fetches column metadata via SYSCAT.COLUMNS. Primary-key membership is determined via SYSCAT.KEYCOLUSE joined with SYSCAT.TABCONST.
METHODS
fetch
my $columns = DBIO::DB2::Introspect::Columns->fetch($dbh, $schema, $tables);
Given the tables hashref from DBIO::DB2::Introspect::Tables, returns a hashref keyed by table name. Each value is an arrayref of column hashrefs in COLNO order with keys: column_name, data_type, not_null, default_value, is_pk, pk_position, size. is_auto_increment is set (to 1) only for GENERATED ... AS IDENTITY columns, matching the canonical model shape consumed by "table_columns_info" in DBIO::Introspect::Base.
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.