DBIO::Firebird

Firebird and InterBase database driver for DBIO (fork of DBIx::Class).

Supports

Usage

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

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

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

Firebird Features

Types

Schema Support

Introspection (RDB$)

Firebird-Specific

Deploy

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

  1. Introspect live database via RDB$ tables (DBIO::Firebird::Introspect)
  2. Deploy desired schema to a temporary database file
  3. Introspect the temporary database the same way
  4. Diff source vs target (DBIO::Firebird::Diff)

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

Testing

Requires a running Firebird instance:

export DBIO_TEST_FIREBIRD_DSN="dbi:Firebird:database=myapp"
export DBIO_TEST_FIREBIRD_USER=sysdba
export DBIO_TEST_FIREBIRD_PASS=secret
prove -l t/

Requirements

See Also

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

Repository

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