| 1 | package DBIO::Oracle::Storage::Savepoints; | ||
| 2 | # ABSTRACT: Savepoint management for Oracle | ||
| 3 | |||
| 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 | |||
| 8 | |||
| 9 | |||
| 10 | 0 | ▶ | sub _exec_svp_begin { |
|
Subroutine
_exec_svp_begin: not called CC=1 SCAR=6.9
| |||
| 11 | 0 | my ($self, $name) = @_; | |
| 12 | 0 | $self->_dbh->do("SAVEPOINT $name"); | |
| 13 | } | ||
| 14 | |||
| 15 | # Oracle auto-releases savepoint on same-name reuse; no-op is correct | ||
| 16 | 0 | ▶ | sub _exec_svp_release { 1 } |
|
Subroutine
_exec_svp_release: not called CC=1 SCAR=6.9
| |||
| 17 | |||
| 18 | 0 | ▶ | sub _exec_svp_rollback { |
|
Subroutine
_exec_svp_rollback: not called CC=1 SCAR=6.9
| |||
| 19 | 0 | my ($self, $name) = @_; | |
| 20 | 0 | $self->_dbh->do("ROLLBACK TO SAVEPOINT $name"); | |
| 21 | } | ||
| 22 | |||
| 23 | # DBD::Oracle warns loudly on partial execute_for_fetch failures | ||
| 24 | 0 | ▶ | sub _dbh_execute_for_fetch { |
|
Subroutine
_dbh_execute_for_fetch: not called CC=1 SCAR=6.9
| |||
| 25 | 0 | local $_[1]->{PrintWarn} = 0; | |
| 26 | 0 | shift->next::method(@_); | |
| 27 | } | ||
| 28 | |||
| 29 | 1 | 1; | |
| 30 | |||
| 31 | __END__ | ||
| 32 | |||
| 33 | =pod | ||
| 34 | |||
| 35 | =encoding UTF-8 | ||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | DBIO::Oracle::Storage::Savepoints - Savepoint management for Oracle | ||
| 40 | |||
| 41 | =head1 VERSION | ||
| 42 | |||
| 43 | version 0.900001 | ||
| 44 | |||
| 45 | =head1 DESCRIPTION | ||
| 46 | |||
| 47 | Oracle savepoint operations and DBD::Oracle quirks. Oracle automatically | ||
| 48 | releases a savepoint when you start another one with the same name, so | ||
| 49 | L</_exec_svp_release> is a no-op. | ||
| 50 | |||
| 51 | =head1 AUTHOR | ||
| 52 | |||
| 53 | DBIO & DBIx::Class Authors | ||
| 54 | |||
| 55 | =head1 COPYRIGHT AND LICENSE | ||
| 56 | |||
| 57 | Copyright (C) 2026 DBIO Authors | ||
| 58 | Portions Copyright (C) 2005-2025 DBIx::Class Authors | ||
| 59 | Based on DBIx::Class, heavily modified. | ||
| 60 | |||
| 61 | This is free software; you can redistribute it and/or modify it under | ||
| 62 | the same terms as the Perl 5 programming language system itself. | ||
| 63 | |||
| 64 | =cut | ||