| external help file | SimplySql.Cmdlets.dll-Help.xml |
|---|---|
| Module Name | SimplySql |
| online version | |
| schema | 2.0.0 |
Open a connection to a PostGre Database.
Open-PostGreConnection [-ConnectionName <String>] [-CommandTimeout <Int32>] [[-Server] <String>]
[[-Database] <String>] [-Port <Int32>] [-MaxAutoPrepare <Int32>] [-SSLMode <String>]
[[-Credential] <PSCredential>] [-Additional <Hashtable>] [<CommonParameters>]
Open-PostGreConnection [-ConnectionName <String>] [-CommandTimeout <Int32>] [[-Credential] <PSCredential>]
-ConnectionString <String> [<CommonParameters>]
Open a connection to a PostGre Database.
PostGreSQL @ https://www.postgresql.org/ PostGre via Npgsql @ http://www.npgsql.org/ .NET Provider @ https://www.nuget.org/packages/Npgsql Geometry: http://www.npgsql.org/doc/types/nts.html
PS C:\> {{ Add example code here }}{{ Add example description here }}
Hashtable to provide additional connection parameters.
Type: Hashtable
Parameter Sets: default
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe default command timeout to be used for all commands executed against this connection.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 30
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUser defined name for connection.
Type: String
Parameter Sets: (All)
Aliases: cn
Required: False
Position: Named
Default value: default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseSpecifies a provider specific connectionstring to be used.
Type: String
Parameter Sets: conn
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA PSCredential object providing the proper credentials to access to the datasource (if required).
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseDatabase name.
Type: String
Parameter Sets: default
Aliases: InitialCatalog
Required: False
Position: 1
Default value: postgres
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe maximum number SQL statements that can be automatically prepared at any given point. Beyond this number the least-recently-used statement will be recycled. Zero disables automatic preparation. DEFAULTS TO 25.
Type: Int32
Parameter Sets: default
Aliases:
Required: False
Position: Named
Default value: 25
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalsePort to connect on, if different from default (5432).
Type: Int32
Parameter Sets: default
Aliases:
Required: False
Position: Named
Default value: 5432
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe Server for the connection.
Type: String
Parameter Sets: default
Aliases: Host
Required: False
Position: 0
Default value: localhost
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseWhich SLLMode to use (defaults to Preferred) Disabled: Do not use SSL. Preferred: Use SSL if the server supports it. Required: Always use SSL. Deny connection if server does not support SSL. Does not validate CA or hostname. VerifyCA: Always use SSL. Validates the CA but tolerates hostname mismatch. VerifyFull: Always use SSL. Validates CA and hostname.
Type: String
Parameter Sets: default
Aliases:
Accepted values: Disable, Prefer, Require, VerifyCA, VerifyFull
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.