| 1 | package DBIx::Connector::Driver::MSSQL; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use base 'DBIx::Connector::Driver'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | our $VERSION = '0.55'; | |
| 7 | |||
| 8 | sub savepoint { | ||
| 9 | 0 | ▶ | my ($self, $dbh, $name) = @_; |
|
Subroutine
savepoint: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 10 | 0 | $dbh->do("SAVE TRANSACTION $name"); | |
| 11 | } | ||
| 12 | |||
| 13 | # MSSQL automatically releases a savepoint when you start another one with the | ||
| 14 | # same name. | ||
| 15 | 0 | ▶ | sub release { 1 } |
|
Subroutine
release: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 16 | |||
| 17 | sub rollback_to { | ||
| 18 | 0 | ▶ | my ($self, $dbh, $name) = @_; |
|
Subroutine
rollback_to: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | 0 | $dbh->do("ROLLBACK TRANSACTION $name"); | |
| 20 | } | ||
| 21 | |||
| 22 | 2 | 1; | |
| 23 | __END__ | ||
| 24 | |||
| 25 | =head1 Name | ||
| 26 | |||
| 27 | DBIx::Connector::Driver::MSSQL - Microsoft SQL Server-specific connection interface | ||
| 28 | |||
| 29 | =head1 Description | ||
| 30 | |||
| 31 | This subclass of L<DBIx::Connector::Driver|DBIx::Connector::Driver> provides | ||
| 32 | Microsoft SQL server-specific implementations of the following methods: | ||
| 33 | |||
| 34 | =over | ||
| 35 | |||
| 36 | =item C<savepoint> | ||
| 37 | |||
| 38 | =item C<release> | ||
| 39 | |||
| 40 | =item C<rollback_to> | ||
| 41 | |||
| 42 | =back | ||
| 43 | |||
| 44 | =head1 Authors | ||
| 45 | |||
| 46 | This module was written and is maintained by: | ||
| 47 | |||
| 48 | =over | ||
| 49 | |||
| 50 | =item David E. Wheeler <david@kineticode.com> | ||
| 51 | |||
| 52 | =back | ||
| 53 | |||
| 54 | It is based on code written by: | ||
| 55 | |||
| 56 | =over | ||
| 57 | |||
| 58 | =item Matt S. Trout <mst@shadowcatsystems.co.uk> | ||
| 59 | |||
| 60 | =item Peter Rabbitson <rabbit+dbic@rabbit.us> | ||
| 61 | |||
| 62 | =back | ||
| 63 | |||
| 64 | =head1 Copyright and License | ||
| 65 | |||
| 66 | Copyright (c) 2009-2013 David E. Wheeler. Some Rights Reserved. | ||
| 67 | |||
| 68 | This module is free software; you can redistribute it and/or modify it under | ||
| 69 | the same terms as Perl itself. | ||
| 70 | |||
| 71 | =cut | ||