NAME
DBIO::DB2 - IBM DB2-specific schema management for DBIO
VERSION
version 0.900000
SYNOPSIS
package MySchema;
use DBIO Schema => -db2;
# ... elsewhere ...
my $schema = MySchema->connect($dsn, $user, $pass);
# Storage is automatically set to DBIO::DB2::Storage
DESCRIPTION
This class is a thin DBIO subclass that automatically sets the storage class to DBIO::DB2::Storage when a connection is established. Load it into your schema instead of the base DBIO class when connecting to IBM DB2 databases.
The -db2 shortcut shown above (see DBIO::Shortcut::db2) pins the DB2 storage driver onto your schema class without naming the storage class by hand. It is equivalent to loading this class as a schema component.
METHODS
connection
$schema->connection($dsn, $user, $pass, \%attrs);
Sets the storage type to DBIO::DB2::Storage before delegating to the parent connection method.
SEE ALSO
DBIO::DB2::Storage - DB2 storage implementation
DBIO - Base ORM class
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.