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.
- Remove
Cmdlet
, moving itsWriteHost
method to an extension method. - Remove
IConsole
, replacing it with a simplerISqlMessageLogger
. - Update Microsoft.Data.SqlClient to 5.2.2
- Add retries on transient failures.
- Fix
EncryptionMode.Default
requiring 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
GetConnectionString
error with-AuthenticationMode SqlPassword
andSqlClientVersion.Legacy
:The specified SqlClient version 'Legacy' does not support authentication mode 'SqlPassword'."
-
Fix
GetConnectionString
with-AuthenticationMode Default
choosing modeSqlPassword
instead ofAadIntegrated
when 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.