NAME
DBIO::Storage::DBI::DataTypeClassifier - Native data type and LOB classification helpers for DBI storage
VERSION
version 0.900000
DESCRIPTION
Data type and LOB classification helpers for DBIO::Storage::DBI.
Provides pure regex/classification utilities for determining whether a given SQL data type is a LOB, binary LOB, text LOB, binary type, or native type alias. Also provides _max_column_bytesize which calculates the byte size hint used for $dbh->bind_param_inout calls.
Drivers override _native_data_type to map foreign type names to their native equivalents. The LOB predicates may be overridden for RDBMS-specific type hierarchies.
_native_data_type
This API is EXPERIMENTAL, will almost definitely change in the future, and currently only used by ::AutoCast and ::Sybase::ASE.
The default implementation returns undef, implement in your Storage driver if you need this functionality.
Should map types from other databases to the native RDBMS type, for example VARCHAR2 to VARCHAR.
Types with modifiers should map to the underlying data type. For example, INTEGER AUTO_INCREMENT should become INTEGER.
Composite types should map to the container type, for example ENUM(foo,bar,baz) becomes ENUM.
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.