DBIO::Sybase

Sybase/ASE database driver for DBIO (fork of DBIx::Class).

Supports

Usage

package MyApp::DB;
use base 'DBIO::Schema';
__PACKAGE__->load_components('Sybase');

my $schema = MyApp::DB->connect('dbi:Sybase:database=myapp');

DBIO core autodetects dbi:Sybase: DSNs and loads this storage automatically.

Sybase Features

Types

Schema Support

Introspection (sysobjects, syscolumns)

Sybase-Specific

Deploy

DBIO::Sybase::Deploy orchestrates test-deploy-and-compare:

  1. Introspect live database via sysobjects (DBIO::Sybase::Introspect)
  2. Deploy desired schema to a temporary database
  3. Introspect the temporary database the same way
  4. Diff source vs target (DBIO::Sybase::Diff)

Install (install_ddl) creates fresh schema. Upgrade diffs live vs. desired.

Testing

Requires a running Sybase/ASE instance:

export DBIO_TEST_SYBASE_DSN="dbi:Sybase:database=myapp"
export DBIO_TEST_SYBASE_USER=sa
export DBIO_TEST_SYBASE_PASS=secret
prove -l t/

Requirements

See Also

DBIO::Introspect::Base, DBIO::Diff::Base, DBIO::Deploy

Repository

https://codeberg.org/dbio/dbio-sybase