NAME
DBIO::Sybase - Sybase-specific schema management for DBIO
VERSION
version 0.900007
SYNOPSIS
package MySchema;
use DBIO Schema => -syb;
# ... later ...
my $schema = MySchema->connect($dsn, $user, $pass);
# Storage is DBIO::Sybase::Storage, and at its first use
# DBIO::Sybase::Storage::ASE
DESCRIPTION
This class is a schema component that declares the Sybase ASE driver: it sets the storage class to DBIO::Sybase::Storage when a connection is established. Load it into your schema when connecting to Sybase ASE.
The recommended way to load the driver is the -syb shortcut (DBIO::Shortcut::syb):
use DBIO 'Schema', -syb;
which pins DBIO::Sybase::Storage as the schema's storage_type.
A schema that declares the driver either way has said what its server is. At the first use that needs the driver -- not at connect -- the storage becomes DBIO::Sybase::Storage::ASE, without asking the server what it is, and then adapts to the client library DBD::Sybase was built against: placeholders or DBIO::Sybase::Storage::ASE::NoBindVars, and the FreeTDS fixups of DBIO::Sybase::Storage::FreeTDS ("_adapt_to_access_path" in DBIO::Sybase::Storage, core ADR 0059).
It never becomes the storage of another product. A server that DBD::Sybase found to be Microsoft SQL Server is reported as a driver mismatch -- a warning by default, an error with "driver_strict" in DBIO::Schema, nothing with "driver_warnings" in DBIO::Schema off; declare DBIO::MSSQL for such a server.
METHODS
connection
$schema->connection($dsn, $user, $pass, \%attrs);
Sets the storage type to DBIO::Sybase::Storage before delegating to the parent connection method.
SEE ALSO
DBIO::Sybase::Storage - the storage class this component declares
DBIO::Sybase::Storage::ASE - Sybase ASE storage
DBIO::Sybase::Storage::FreeTDS - FreeTDS connection layer
DBIO::MSSQL::Storage::Sybase - MSSQL via DBD::Sybase
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.