-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: AutoContinue + Get-CosmosConnection
Added AutoContinue to Invoke-CosmosQuery Added Get-CosmosConnection
- Loading branch information
Showing
5 changed files
with
119 additions
and
51 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 @@ | ||
function Get-CosmosConnection | ||
{ | ||
<# | ||
.SYNOPSIS | ||
Returns most recently created Cosmos connection object | ||
.DESCRIPTION | ||
Returns most recently created cosmos connection object that is cached inside the module. | ||
Useful when you do not want to keep connection object in variable and reach for it only when needed | ||
.OUTPUTS | ||
Connection configuration object. | ||
#> | ||
param () | ||
|
||
process | ||
{ | ||
$script:Configuration | ||
} | ||
} |
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
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