| 1 | package DBIO::Oracle; | ||
| 2 | # ABSTRACT: Oracle-specific schema management for DBIO | ||
| 3 | 1 | our $VERSION = '0.900001'; | |
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use base 'DBIO::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | |||
| 10 | 0 | ▶ | sub connection { |
|
Subroutine
connection: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 11 | 0 | my ($self, @info) = @_; | |
| 12 | 0 | $self->storage_type('+DBIO::Oracle::Storage'); | |
| 13 | 0 | return $self->next::method(@info); | |
| 14 | } | ||
| 15 | |||
| 16 | |||
| 17 | |||
| 18 | 1 | 1; | |
| 19 | |||
| 20 | __END__ | ||
| 21 | |||
| 22 | =pod | ||
| 23 | |||
| 24 | =encoding UTF-8 | ||
| 25 | |||
| 26 | =head1 NAME | ||
| 27 | |||
| 28 | DBIO::Oracle - Oracle-specific schema management for DBIO | ||
| 29 | |||
| 30 | =head1 VERSION | ||
| 31 | |||
| 32 | version 0.900001 | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | package MySchema; | ||
| 37 | use DBIO Schema => -ora; | ||
| 38 | |||
| 39 | # ... later | ||
| 40 | my $schema = MySchema->connect($dsn, $user, $pass); | ||
| 41 | # Storage is automatically set to DBIO::Oracle::Storage | ||
| 42 | |||
| 43 | =head1 DESCRIPTION | ||
| 44 | |||
| 45 | This class is a thin L<DBIO> subclass that automatically sets the storage | ||
| 46 | class to L<DBIO::Oracle::Storage> when a connection is established. The | ||
| 47 | C<-ora> shortcut (handled by L<DBIO::Shortcut::ora>) wires the Oracle storage | ||
| 48 | into your schema; the classic C<use base 'DBIO::Oracle'> / C<load_components> | ||
| 49 | forms remain supported. Load it into your schema instead of the base L<DBIO> | ||
| 50 | class when connecting to Oracle databases. | ||
| 51 | |||
| 52 | For Oracle versions prior to 9.0 that do not support ANSI join syntax, the | ||
| 53 | storage will automatically use L<DBIO::Oracle::Storage::WhereJoins> instead. | ||
| 54 | |||
| 55 | =head1 METHODS | ||
| 56 | |||
| 57 | =head2 connection | ||
| 58 | |||
| 59 | $schema->connection($dsn, $user, $pass, \%attrs); | ||
| 60 | |||
| 61 | Sets the storage type to L<DBIO::Oracle::Storage> before delegating to the | ||
| 62 | parent C<connection> method. | ||
| 63 | |||
| 64 | =head1 SEE ALSO | ||
| 65 | |||
| 66 | =over | ||
| 67 | |||
| 68 | =item * L<DBIO::Shortcut::ora> - the C<use DBIO -ora> shortcut | ||
| 69 | |||
| 70 | =item * L<DBIO::Oracle::Storage> - Oracle storage implementation | ||
| 71 | |||
| 72 | =item * L<DBIO::Oracle::SQLMaker> - Oracle SQL dialect | ||
| 73 | |||
| 74 | =item * L<DBIO::Oracle::Storage::WhereJoins> - WHERE-clause join support for Oracle E<lt> 9 | ||
| 75 | |||
| 76 | =item * L<DBIO> - Base ORM class | ||
| 77 | |||
| 78 | =back | ||
| 79 | |||
| 80 | =head1 AUTHOR | ||
| 81 | |||
| 82 | DBIO & DBIx::Class Authors | ||
| 83 | |||
| 84 | =head1 COPYRIGHT AND LICENSE | ||
| 85 | |||
| 86 | Copyright (C) 2026 DBIO Authors | ||
| 87 | Portions Copyright (C) 2005-2025 DBIx::Class Authors | ||
| 88 | Based on DBIx::Class, heavily modified. | ||
| 89 | |||
| 90 | This is free software; you can redistribute it and/or modify it under | ||
| 91 | the same terms as the Perl 5 programming language system itself. | ||
| 92 | |||
| 93 | =cut | ||