-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.7.0 - Get-SqlTransaction added, fixes #38
- Loading branch information
1 parent
e71cada
commit ddcb48c
Showing
4 changed files
with
29 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<# | ||
.Synopsis | ||
Gets the underlying transaction object. | ||
.Description | ||
Gets the underlying transaction object for the current connection | ||
or for the connection name specified. | ||
.Parameter ConnectionName | ||
User Defined name for the SqlConnection. | ||
#> | ||
Filter Get-SqlTransaction { | ||
[CmdletBinding()] | ||
Param([parameter(ParameterSetName="single", ValueFromPipeline, Position=0)][ValidateNotNullOrEmpty()][Alias("cn")][string]$ConnectionName = "default") | ||
|
||
If(-not (TestConnectionName $ConnectionName)) { return } | ||
Else { $Script:Connections.$ConnectionName.Transaction | Write-Output } | ||
|
||
} | ||
Export-ModuleMember -Function Get-SqlTransaction |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters