NAME

DBIO::PostgreSQL::Introspect::Types - Introspect PostgreSQL types (enums, composites, ranges)

VERSION

version 0.900000

DESCRIPTION

Fetches user-defined type metadata from pg_catalog: enum types (with ordered values), composite types (with attributes), and range types (with subtype). System types are excluded.

METHODS

fetch

my $types = DBIO::PostgreSQL::Introspect::Types->fetch($dbh, $filter);

Returns a hashref keyed by schema.type_name. Each value is a hashref with schema_name, type_name, type_kind (enum, composite, or range), and kind-specific fields:

enum: values (ArrayRef, sorted by enumsortorder)
composite: attributes (ArrayRef of { name, type, ordinal })
range: subtype (subtype name string)

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.