DBIO::Oracle

Oracle database driver for DBIO (fork of DBIx::Class).

Supports

Usage

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

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

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

Oracle Features

Types

Schema Support

Introspection (USER_, ALL_)

Oracle-Specific

Deploy

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

  1. Introspect live database via USER_* views (DBIO::Oracle::Introspect)
  2. Deploy desired schema to a temporary tablespace
  3. Introspect the temporary schema the same way
  4. Diff source vs target (DBIO::Oracle::Diff)

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

Testing

Requires a running Oracle instance:

export DBIO_TEST_ORA_DSN="dbi:Oracle:host=localhost;service_name=myapp"
export DBIO_TEST_ORA_USER=myapp
export DBIO_TEST_ORA_PASS=secret
prove -l t/

Requirements

See Also

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

Repository

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