This file documents all notable changes.
Most lines should begin with one of these words: Add, Fix, Update, Change, Deprecate, Remove.
- Change license to MIT.
- Change target to PowerShell 7.2 / .NET 6.
- Change how the module loads dependencies. Now, the module loads dependencies into a private context using the recommended technique to prevent errors if other moduels load conflicting dependencies.
- Change
Cmdlet, renaming toPSqlCmdlet. - Remove
IConsole, replacing it with a simplerISqlMessageLogger. - Update Microsoft.Data.SqlClient to 5.2.2
- Add
-ReplaceVariablesInCommentsswitch toExpand-SqlCmdDirectives. - Add retries on transient failures.
- Fix
EncryptionMode.Defaultrequiring certificate validation for local connections.
- Update Microsoft.Data.SqlClient to 4.1.0
- Add dependency Prequel, which is PSql's SQLCMD preprocessor moved to its own NuGet package.
- Add support for a line comment at end of a SQLCMD directive.
-
Fix
GetConnectionStringerror with-AuthenticationMode SqlPasswordandSqlClientVersion.Legacy:The specified SqlClient version 'Legacy' does not support authentication mode 'SqlPassword'."
-
Fix
GetConnectionStringwith-AuthenticationMode Defaultchoosing modeSqlPasswordinstead ofAadIntegratedwhen no credential is specified. This resulted in the error:A credential is required when connecting to Azure SQL Database using authentication mode 'SqlPassword'.
The 2.0.0 release is a complete rewrite of PSql.
- Change module type to binary.
- Change target to PowerShell 7.0+ / .NET Core 3.1.
- Change ADO.NET implementation to Microsoft.Data.SqlClient.
- Add numerous SQL context properties and methods.
- Add support for Azure Active Directory authentication modes.
- Add automated build and publish via GitHub Actions.