-
-
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.
- Loading branch information
Showing
8 changed files
with
313 additions
and
26 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
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,77 @@ | ||
--- | ||
external help file: PsCosmos.dll-Help.xml | ||
Module Name: PsCosmos | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Connect-CSqlInstance | ||
|
||
## SYNOPSIS | ||
Creates a connection to a CosmosDb instance. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Connect-CSqlInstance [-Endpoint] <String> [-ReadKey] <String> [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Cosmos SQL queries require a authenticated client, which is created by this command using a CosmosDb instance endpoint and a ReadKey. | ||
The latest created connection is used as default connection for other commands, that require a connection. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
```powershell | ||
PS C:\> {{ Add example code here }} | ||
``` | ||
|
||
{{ Add example description here }} | ||
|
||
## PARAMETERS | ||
|
||
### -Endpoint | ||
Specifies the endpoint, that is required to identify the CosmosDb instance. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 0 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName, ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
### -ReadKey | ||
Specifies the key, to authenticate the client. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName, ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### System.String | ||
## OUTPUTS | ||
### Microsoft.Azure.Cosmos.CosmosClient | ||
## NOTES | ||
## RELATED LINKS |
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,60 @@ | ||
--- | ||
external help file: PsCosmos.dll-Help.xml | ||
Module Name: PsCosmos | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Disconnect-CSqlInstance | ||
|
||
## SYNOPSIS | ||
|
||
Disposes a CosmosDb connection. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Disconnect-CSqlInstance [-Client <CosmosClient>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Disposes a CosmosDb connection and removes it as default from other commands. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
```powershell | ||
PS C:\> {{ Add example code here }} | ||
``` | ||
|
||
{{ Add example description here }} | ||
|
||
## PARAMETERS | ||
|
||
### -Client | ||
Specifies the connection to Cosmos Db. If not specified, the last connected instance is used. | ||
|
||
```yaml | ||
Type: CosmosClient | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName, ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### Microsoft.Azure.Cosmos.CosmosClient | ||
## OUTPUTS | ||
## NOTES | ||
## RELATED LINKS |
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,126 @@ | ||
--- | ||
external help file: PsCosmos.dll-Help.xml | ||
Module Name: PsCosmos | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Invoke-CSqlQuery | ||
|
||
## SYNOPSIS | ||
Queries a CosmosDb using SQL. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Invoke-CSqlQuery [-Text] <String> [-Client <CosmosClient>] -Database <String> -Container <String> | ||
[-Timeout <Int32>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Executes a Cosmos SQL query and returns the result as PowerShell objects. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
```powershell | ||
PS C:\> {{ Add example code here }} | ||
``` | ||
|
||
{{ Add example description here }} | ||
|
||
## PARAMETERS | ||
|
||
### -Client | ||
Specifies the connection to Cosmos Db. If not specified, the last connected instance is used. | ||
|
||
```yaml | ||
Type: CosmosClient | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName, ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
### -Container | ||
Specifies the container to execute the query in. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### -Database | ||
Specifies the database to execute the query in. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### -Text | ||
Specifies the SQL query text. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 0 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### -Timeout | ||
Specifies a timeout for the query in seconds. If not specified, no timeout is used. | ||
```yaml | ||
Type: Int32 | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### System.String | ||
### Microsoft.Azure.Cosmos.CosmosClient | ||
### System.Int32 | ||
## OUTPUTS | ||
### System.Management.Automation.PSObject | ||
## NOTES | ||
## RELATED LINKS |
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
Oops, something went wrong.