From 6414f140159a1afd2fbd92e5398bbd9984542a64 Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Tue, 17 May 2022 18:36:53 +0200 Subject: [PATCH 01/14] add dependabot --- .github/dependabot.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..0f28f46 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "nuget" # See documentation for possible values + directory: "/src/PsDac" # Location of package manifests + schedule: + interval: "daily" + target-branch: "develop" From 457e4d46531d9857bcfc77857ea466511fa9d790 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Jul 2022 17:28:49 +0000 Subject: [PATCH 02/14] Bump Microsoft.SqlServer.DacFx in /src/PsDac Bumps [Microsoft.SqlServer.DacFx](https://github.com/microsoft/DacFx) from 160.5400.1 to 160.6161.0. - [Release notes](https://github.com/microsoft/DacFx/releases) - [Commits](https://github.com/microsoft/DacFx/commits) --- updated-dependencies: - dependency-name: Microsoft.SqlServer.DacFx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/PsDac/PsDac.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PsDac/PsDac.csproj b/src/PsDac/PsDac.csproj index c6b5ab0..149b782 100644 --- a/src/PsDac/PsDac.csproj +++ b/src/PsDac/PsDac.csproj @@ -6,7 +6,7 @@ - + From aced10ccc8b5f6d48a107b4d039d551e3769ec89 Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Thu, 7 Jul 2022 19:41:53 +0200 Subject: [PATCH 03/14] updated psbuildtasks --- .github/workflows/pre-release.yml | 24 +++--- .github/workflows/release.yml | 24 +++--- docs/_config.yml | 1 + docs/index.md | 18 ++--- tasks/PsBuild.Tasks.ps1 | 123 ++++++++++++++++-------------- 5 files changed, 98 insertions(+), 92 deletions(-) create mode 100644 docs/_config.yml diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index bae8d77..acfe95a 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -1,12 +1,12 @@ -on: - push: - branches: [ release/* ] - workflow_dispatch: - -jobs: - pre-release: - uses: abbgrade/PsBuildTasks/.github/workflows/pre-release-windows.yml@v1.1 - with: - module-name: PsDac - secrets: - ps-gallery-key: ${{ secrets.PS_GALLERY_KEY }} +on: + push: + branches: [ release/* ] + workflow_dispatch: + +jobs: + pre-release: + uses: abbgrade/PsBuildTasks/.github/workflows/pre-release-windows.yml@v1.1 + with: + module-name: PsDac + secrets: + ps-gallery-key: ${{ secrets.PS_GALLERY_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46050ec..94b8036 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,12 @@ -on: - push: - branches: [ main ] - workflow_dispatch: - -jobs: - release: - uses: abbgrade/PsBuildTasks/.github/workflows/release-windows.yml@v1.1 - with: - module-name: PsDac - secrets: - ps-gallery-key: ${{ secrets.PS_GALLERY_KEY }} +on: + push: + branches: [ main ] + workflow_dispatch: + +jobs: + release: + uses: abbgrade/PsBuildTasks/.github/workflows/release-windows.yml@v1.1 + with: + module-name: PsDac + secrets: + ps-gallery-key: ${{ secrets.PS_GALLERY_KEY }} diff --git a/docs/_config.yml b/docs/_config.yml new file mode 100644 index 0000000..fff4ab9 --- /dev/null +++ b/docs/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-minimal diff --git a/docs/index.md b/docs/index.md index 6c01cd3..d9f8841 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,9 +1,9 @@ -# Index - -
    -{% for page in site.pages %} -{% if page.title and page.title != 'Index' %} -
  • {{ page.title }}
  • -{% endif %} -{% endfor %} -
+# Index + +
    +{% for page in site.pages %} +{% if page.title and page.title != 'Index' %} +
  • {{ page.title }}
  • +{% endif %} +{% endfor %} +
diff --git a/tasks/PsBuild.Tasks.ps1 b/tasks/PsBuild.Tasks.ps1 index 09035e4..10b7635 100644 --- a/tasks/PsBuild.Tasks.ps1 +++ b/tasks/PsBuild.Tasks.ps1 @@ -1,59 +1,64 @@ -#region InvokeBuild - -task UpdateBuildTasks { - Invoke-WebRequest ` - -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/DotNet/Build.Tasks.ps1' ` - -OutFile "$PSScriptRoot\Build.Tasks.ps1" -} - -#endregion -#region GitHub Actions - -task UpdateValidationWorkflow { - Invoke-WebRequest ` - -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/GitHub/build-validation-matrix.yml' ` - -OutFile "$PSScriptRoot\..\.github\workflows\build-validation.yml" -} - -task UpdatePreReleaseWorkflow { - Invoke-WebRequest ` - -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/GitHub/pre-release-windows.yml' ` - -OutFile "$PSScriptRoot\..\.github\workflows\pre-release.yml" -} - -task UpdateReleaseWorkflow { - Invoke-WebRequest ` - -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/GitHub/release-windows.yml' ` - -OutFile "$PSScriptRoot\..\.github\workflows\release.yml" -} - -#endregion -#region GitHub Pages - -task UpdateIndexPage { - Invoke-WebRequest ` - -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/docs/index.md' ` - -OutFile "$PSScriptRoot\..\docs\index.md" -} - -#endregion -#region VsCode - -task UpdateVsCodeTasks { - Invoke-WebRequest ` - -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/VsCode/tasks.json' ` - -OutFile "$PSScriptRoot\..\.vscode\tasks.json" -} - -#endregion -#region PsBuildTasks - -task UpdatePsBuildTasksTasks { - Invoke-WebRequest ` - -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/tasks/Dotnet-Matrix.Tasks.ps1' ` - -OutFile "$PSScriptRoot\PsBuild.Tasks.ps1" -} - -#endregion - -task UpdatePsBuildTasks -Jobs UpdateBuildTasks, UpdateValidationWorkflow, UpdatePreReleaseWorkflow, UpdateIndexPage, UpdateReleaseWorkflow, UpdateVsCodeTasks, UpdatePsBuildTasksTasks +#region InvokeBuild + +task UpdateBuildTasks { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/DotNet/Build.Tasks.ps1' ` + -OutFile "$PSScriptRoot\Build.Tasks.ps1" +} + +#endregion +#region GitHub Actions + +task UpdateValidationWorkflow { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/GitHub/build-validation-matrix.yml' ` + -OutFile "$PSScriptRoot\..\.github\workflows\build-validation.yml" +} + +task UpdatePreReleaseWorkflow { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/GitHub/pre-release-windows.yml' | + ForEach-Object { $_ -replace 'MyModuleName', $ModuleName } | + Out-File "$PSScriptRoot\..\.github\workflows\pre-release.yml" -NoNewline +} + +task UpdateReleaseWorkflow { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/GitHub/release-windows.yml' | + ForEach-Object { $_ -replace 'MyModuleName', $ModuleName } | + Out-File "$PSScriptRoot\..\.github\workflows\release.yml" -NoNewline +} + +#endregion +#region GitHub Pages + +task UpdateIndexPage { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/docs/index.md' ` + -OutFile "$PSScriptRoot\..\docs\index.md" + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/docs/_config.yml' ` + -OutFile "$PSScriptRoot\..\docs\_config.yml" +} + +#endregion +#region VsCode + +task UpdateVsCodeTasks { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/VsCode/tasks.json' ` + -OutFile "$PSScriptRoot\..\.vscode\tasks.json" +} + +#endregion +#region PsBuildTasks + +task UpdatePsBuildTasksTasks { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/tasks/Dotnet-Matrix.Tasks.ps1' ` + -OutFile "$PSScriptRoot\PsBuild.Tasks.ps1" +} + +#endregion + +task UpdatePsBuildTasks -Jobs UpdateBuildTasks, UpdateValidationWorkflow, UpdatePreReleaseWorkflow, UpdateIndexPage, UpdateReleaseWorkflow, UpdateVsCodeTasks, UpdatePsBuildTasksTasks From bce71022bed620b363632f94c0f5a14fc35fa2e4 Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Thu, 7 Jul 2022 20:22:06 +0200 Subject: [PATCH 04/14] updated docs --- docs/Connect-DacService.md | 172 +++++++++--------- docs/Disconnect-DacService.md | 128 ++++++------- docs/Get-DacColumn.md | 164 ++++++++--------- docs/Get-DacDataType.md | 144 +++++++-------- docs/Get-DacForeignKey.md | 158 ++++++++-------- docs/Get-DacObject.md | 190 ++++++++++---------- docs/Get-DacPartitionFunction.md | 158 ++++++++-------- docs/Get-DacPartitionScheme.md | 158 ++++++++-------- docs/Get-DacProcedure.md | 158 ++++++++-------- docs/Get-DacRole.md | 190 ++++++++++---------- docs/Get-DacScalarFunction.md | 158 ++++++++-------- docs/Get-DacSchema.md | 194 ++++++++++---------- docs/Get-DacTable.md | 162 ++++++++--------- docs/Get-DacTableValuedFunction.md | 158 ++++++++-------- docs/Get-DacView.md | 158 ++++++++-------- docs/Import-DacModel.md | 198 ++++++++++---------- docs/Import-DacPackage.md | 158 ++++++++-------- docs/Install-DacPackage.md | 230 ++++++++++++------------ docs/New-DacCreateScript.md | 278 ++++++++++++++--------------- docs/Set-DacPackage.md | 192 ++++++++++---------- docs/Test-DacModel.md | 158 ++++++++-------- 21 files changed, 1832 insertions(+), 1832 deletions(-) diff --git a/docs/Connect-DacService.md b/docs/Connect-DacService.md index 1af0ff1..82bc7ed 100644 --- a/docs/Connect-DacService.md +++ b/docs/Connect-DacService.md @@ -1,86 +1,86 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Connect-DacService - -## SYNOPSIS -Connects a database instance using DacServices. - -## SYNTAX - -### ConnectionString -``` -Connect-DacService [-ConnectionString] [] -``` - -### DataSource -``` -Connect-DacService [-DataSource] [] -``` - -## DESCRIPTION -Creates a DacServices instance, that can be used by commands. -Unfortunately, the parameters are not checked while connecting, but while usage. - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> Connect-DacService -DataSource '(LocalDb)\MSSQLLocalDB' -``` - -Creates a dac service for localdb. - -## PARAMETERS - -### -ConnectionString -Specifies the connection string to use. -The DataSource, Hostname or Instance must be specified as Server. - -```yaml -Type: String -Parameter Sets: ConnectionString -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -DataSource -Specifies the datasource aka. server name to connect to. - -```yaml -Type: String -Parameter Sets: DataSource -Aliases: - -Required: True -Position: 0 -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 - -## OUTPUTS - -### Microsoft.SqlServer.Dac.DacServices - -## NOTES - -## RELATED LINKS - -[DacServices](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacservices) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Connect-DacService + +## SYNOPSIS +Connects a database instance using DacServices. + +## SYNTAX + +### ConnectionString +``` +Connect-DacService [-ConnectionString] [] +``` + +### DataSource +``` +Connect-DacService [-DataSource] [] +``` + +## DESCRIPTION +Creates a DacServices instance, that can be used by commands. +Unfortunately, the parameters are not checked while connecting, but while usage. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Connect-DacService -DataSource '(LocalDb)\MSSQLLocalDB' +``` + +Creates a dac service for localdb. + +## PARAMETERS + +### -ConnectionString +Specifies the connection string to use. +The DataSource, Hostname or Instance must be specified as Server. + +```yaml +Type: String +Parameter Sets: ConnectionString +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -DataSource +Specifies the datasource aka. server name to connect to. + +```yaml +Type: String +Parameter Sets: DataSource +Aliases: + +Required: True +Position: 0 +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 + +## OUTPUTS + +### Microsoft.SqlServer.Dac.DacServices + +## NOTES + +## RELATED LINKS + +[DacServices](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacservices) diff --git a/docs/Disconnect-DacService.md b/docs/Disconnect-DacService.md index 1463553..40d0a9b 100644 --- a/docs/Disconnect-DacService.md +++ b/docs/Disconnect-DacService.md @@ -1,64 +1,64 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Disconnect-DacService - -## SYNOPSIS -Closes the connection to a database server. - -## SYNTAX - -``` -Disconnect-DacService [-Service ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> Connect-DacService -DataSource '(LocalDb)\MSSQLLocalDB' -PS C:\> Disconnect-DacService -``` - -Closes an open connection to localdb. - -## PARAMETERS - -### -Service -Specifies the service to disconnect. Default is the latest connected service. - -```yaml -Type: DacServices -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -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 - -### None - -## OUTPUTS - -### None - -## NOTES - -## RELATED LINKS - -[DacServices](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacservices) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Disconnect-DacService + +## SYNOPSIS +Closes the connection to a database server. + +## SYNTAX + +``` +Disconnect-DacService [-Service ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Connect-DacService -DataSource '(LocalDb)\MSSQLLocalDB' +PS C:\> Disconnect-DacService +``` + +Closes an open connection to localdb. + +## PARAMETERS + +### -Service +Specifies the service to disconnect. Default is the latest connected service. + +```yaml +Type: DacServices +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 + +### None + +## OUTPUTS + +### None + +## NOTES + +## RELATED LINKS + +[DacServices](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacservices) diff --git a/docs/Get-DacColumn.md b/docs/Get-DacColumn.md index be78723..b43eee3 100644 --- a/docs/Get-DacColumn.md +++ b/docs/Get-DacColumn.md @@ -1,82 +1,82 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacColumn - -## SYNOPSIS -Returns columns of a table. - -## SYNTAX - -``` -Get-DacColumn [-Table] [[-Name] ] [] -``` - -## DESCRIPTION -Provides a column object to access it's definition. - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac | Get-DacTable -Name '[Application].[Cities]' | Get-DacColumn -Name '[Application].[Cities].[CityID]' - -Schema Name ObjectType ------- ---- ---------- -Application [Application].[Cities].[CityID] Microsoft.SqlServer.Dac.Model.ModelTypeClass -``` - -## PARAMETERS - -### -Name -Specifies a filter on the column name. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Table -Specifies the table to get the columns from. The ObjectType must be Table. - -```yaml -Type: TSqlObject -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -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.SqlServer.Dac.Model.TSqlObject - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -ObjectType will be Column. - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacColumn + +## SYNOPSIS +Returns columns of a table. + +## SYNTAX + +``` +Get-DacColumn [-Table] [[-Name] ] [] +``` + +## DESCRIPTION +Provides a column object to access it's definition. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac | Get-DacTable -Name '[Application].[Cities]' | Get-DacColumn -Name '[Application].[Cities].[CityID]' + +Schema Name ObjectType +------ ---- ---------- +Application [Application].[Cities].[CityID] Microsoft.SqlServer.Dac.Model.ModelTypeClass +``` + +## PARAMETERS + +### -Name +Specifies a filter on the column name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Table +Specifies the table to get the columns from. The ObjectType must be Table. + +```yaml +Type: TSqlObject +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +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.SqlServer.Dac.Model.TSqlObject + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +ObjectType will be Column. + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) diff --git a/docs/Get-DacDataType.md b/docs/Get-DacDataType.md index ddc798b..e718809 100644 --- a/docs/Get-DacDataType.md +++ b/docs/Get-DacDataType.md @@ -1,72 +1,72 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacDataType - -## SYNOPSIS -Returns the data type of a column. - -## SYNTAX - -``` -Get-DacDataType [-Column] [] -``` - -## DESCRIPTION -Provides the datatype and properties to a column. - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac | Get-DacTable -Name '[Application].[Cities]' | Get-DacColumn -Name '[Application].[Cities].[CityID]' | Get-DacDataType - - -Name : Int -Length : 0 -Precision : 0 -Scale : 0 -IsNullable : False -IsMax : False -Collation : -_detail : Microsoft.SqlServer.Dac.Model.TSqlObject -``` - -## PARAMETERS - -### -Column -Specifies the column to get the data type from. The ObjectType must be Column. - -```yaml -Type: TSqlObject -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -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.SqlServer.Dac.Model.TSqlObject - -## OUTPUTS - -### PsDac.GetDataTypeCommand+ColumnInfo - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[Column](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.column) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacDataType + +## SYNOPSIS +Returns the data type of a column. + +## SYNTAX + +``` +Get-DacDataType [-Column] [] +``` + +## DESCRIPTION +Provides the datatype and properties to a column. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac | Get-DacTable -Name '[Application].[Cities]' | Get-DacColumn -Name '[Application].[Cities].[CityID]' | Get-DacDataType + + +Name : Int +Length : 0 +Precision : 0 +Scale : 0 +IsNullable : False +IsMax : False +Collation : +_detail : Microsoft.SqlServer.Dac.Model.TSqlObject +``` + +## PARAMETERS + +### -Column +Specifies the column to get the data type from. The ObjectType must be Column. + +```yaml +Type: TSqlObject +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +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.SqlServer.Dac.Model.TSqlObject + +## OUTPUTS + +### PsDac.GetDataTypeCommand+ColumnInfo + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[Column](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.column) diff --git a/docs/Get-DacForeignKey.md b/docs/Get-DacForeignKey.md index b2baee3..5d62ecc 100644 --- a/docs/Get-DacForeignKey.md +++ b/docs/Get-DacForeignKey.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacForeignKey - -## SYNOPSIS -Returns the foreign keys of a model. - -## SYNTAX - -``` -Get-DacForeignKey [-Model] [[-Name] ] [] -``` - -## DESCRIPTION -Provides a foreign key object to access it's definition. - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the foreign keys from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -Specifies a filter on the key name. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacForeignKey + +## SYNOPSIS +Returns the foreign keys of a model. + +## SYNTAX + +``` +Get-DacForeignKey [-Model] [[-Name] ] [] +``` + +## DESCRIPTION +Provides a foreign key object to access it's definition. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the foreign keys from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +Specifies a filter on the key name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacObject.md b/docs/Get-DacObject.md index 6d7b692..0ed0925 100644 --- a/docs/Get-DacObject.md +++ b/docs/Get-DacObject.md @@ -1,95 +1,95 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacObject - -## SYNOPSIS -Gets the objects of a model. - -## SYNTAX - -``` -Get-DacObject [-Model] [[-Name] ] [-Scope ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the objects from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -{{ Fill Name Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Scope -{{ Fill Scope Description }} - -```yaml -Type: DacQueryScopes -Parameter Sets: (All) -Aliases: -Accepted values: None, UserDefined, BuiltIn, Default, SameDatabase, System, All - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacObject + +## SYNOPSIS +Gets the objects of a model. + +## SYNTAX + +``` +Get-DacObject [-Model] [[-Name] ] [-Scope ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the objects from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +{{ Fill Name Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +{{ Fill Scope Description }} + +```yaml +Type: DacQueryScopes +Parameter Sets: (All) +Aliases: +Accepted values: None, UserDefined, BuiltIn, Default, SameDatabase, System, All + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacPartitionFunction.md b/docs/Get-DacPartitionFunction.md index 8fcb06a..92b5c51 100644 --- a/docs/Get-DacPartitionFunction.md +++ b/docs/Get-DacPartitionFunction.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacPartitionFunction - -## SYNOPSIS -Gets the partition functions of a model. - -## SYNTAX - -``` -Get-DacPartitionFunction [-Model] [[-Name] ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the partition functions from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -{{ Fill Name Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacPartitionFunction + +## SYNOPSIS +Gets the partition functions of a model. + +## SYNTAX + +``` +Get-DacPartitionFunction [-Model] [[-Name] ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the partition functions from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +{{ Fill Name Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacPartitionScheme.md b/docs/Get-DacPartitionScheme.md index fed5c13..a8c9b98 100644 --- a/docs/Get-DacPartitionScheme.md +++ b/docs/Get-DacPartitionScheme.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacPartitionScheme - -## SYNOPSIS -Gets the partition schemes of a model. - -## SYNTAX - -``` -Get-DacPartitionScheme [-Model] [[-Name] ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the partition schemes from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -{{ Fill Name Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacPartitionScheme + +## SYNOPSIS +Gets the partition schemes of a model. + +## SYNTAX + +``` +Get-DacPartitionScheme [-Model] [[-Name] ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the partition schemes from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +{{ Fill Name Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacProcedure.md b/docs/Get-DacProcedure.md index c91b5d9..93e589c 100644 --- a/docs/Get-DacProcedure.md +++ b/docs/Get-DacProcedure.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacProcedure - -## SYNOPSIS -Gets the procedures of a model. - -## SYNTAX - -``` -Get-DacProcedure [-Model] [[-Name] ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the procedures from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -{{ Fill Name Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacProcedure + +## SYNOPSIS +Gets the procedures of a model. + +## SYNTAX + +``` +Get-DacProcedure [-Model] [[-Name] ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the procedures from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +{{ Fill Name Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacRole.md b/docs/Get-DacRole.md index 4604d0c..a3817bf 100644 --- a/docs/Get-DacRole.md +++ b/docs/Get-DacRole.md @@ -1,95 +1,95 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacRole - -## SYNOPSIS -Gets the roles of a model. - -## SYNTAX - -``` -Get-DacRole [-Model] [[-Name] ] [-Scope ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the roles from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -{{ Fill Name Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Scope -{{ Fill Scope Description }} - -```yaml -Type: DacQueryScopes -Parameter Sets: (All) -Aliases: -Accepted values: None, UserDefined, BuiltIn, Default, SameDatabase, System, All - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacRole + +## SYNOPSIS +Gets the roles of a model. + +## SYNTAX + +``` +Get-DacRole [-Model] [[-Name] ] [-Scope ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the roles from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +{{ Fill Name Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +{{ Fill Scope Description }} + +```yaml +Type: DacQueryScopes +Parameter Sets: (All) +Aliases: +Accepted values: None, UserDefined, BuiltIn, Default, SameDatabase, System, All + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacScalarFunction.md b/docs/Get-DacScalarFunction.md index c6775cd..f4f65a7 100644 --- a/docs/Get-DacScalarFunction.md +++ b/docs/Get-DacScalarFunction.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacScalarFunction - -## SYNOPSIS -Gets the scalar functions of a model. - -## SYNTAX - -``` -Get-DacScalarFunction [-Model] [[-Name] ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the scalar functions from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -{{ Fill Name Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacScalarFunction + +## SYNOPSIS +Gets the scalar functions of a model. + +## SYNTAX + +``` +Get-DacScalarFunction [-Model] [[-Name] ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the scalar functions from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +{{ Fill Name Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacSchema.md b/docs/Get-DacSchema.md index 0701315..2d95388 100644 --- a/docs/Get-DacSchema.md +++ b/docs/Get-DacSchema.md @@ -1,97 +1,97 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacSchema - -## SYNOPSIS -Gets the schemas of a model. - -## SYNTAX - -``` -Get-DacSchema [-Model] [[-Name] ] [-Scope ] [] -``` - -## DESCRIPTION -Provides a schema object to access it's definition. - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac | Get-DacSchema -Name 'Application' -fwd-i-search: _ -Schema Name ObjectType ------- ---- ---------- -Application [Application] Microsoft.SqlServer.Dac.Model.ModelTypeClass -``` - -## PARAMETERS - -### -Model -Specifies the model to get the schemas from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -Specifies a filter on the schema name. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Scope -Specifies a filter on the scope. - -```yaml -Type: DacQueryScopes -Parameter Sets: (All) -Aliases: -Accepted values: None, UserDefined, BuiltIn, Default, SameDatabase, System, All - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacSchema + +## SYNOPSIS +Gets the schemas of a model. + +## SYNTAX + +``` +Get-DacSchema [-Model] [[-Name] ] [-Scope ] [] +``` + +## DESCRIPTION +Provides a schema object to access it's definition. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac | Get-DacSchema -Name 'Application' +fwd-i-search: _ +Schema Name ObjectType +------ ---- ---------- +Application [Application] Microsoft.SqlServer.Dac.Model.ModelTypeClass +``` + +## PARAMETERS + +### -Model +Specifies the model to get the schemas from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +Specifies a filter on the schema name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +Specifies a filter on the scope. + +```yaml +Type: DacQueryScopes +Parameter Sets: (All) +Aliases: +Accepted values: None, UserDefined, BuiltIn, Default, SameDatabase, System, All + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacTable.md b/docs/Get-DacTable.md index e9fe330..2ef14d2 100644 --- a/docs/Get-DacTable.md +++ b/docs/Get-DacTable.md @@ -1,81 +1,81 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacTable - -## SYNOPSIS -Returns the tables of a model. - -## SYNTAX - -``` -Get-DacTable [-Model] [[-Name] ] [] -``` - -## DESCRIPTION -Provides a table object to access it's definition. - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac | Get-DacTable -Name '[Application].[Cities]' - -Schema Name ObjectType ------- ---- ---------- -Application [Application].[Cities] Microsoft.SqlServer.Dac.Model.ModelTypeClass -``` - -## PARAMETERS - -### -Model -Specifies the model to get the tables from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -Specifies a filter on the table name. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacTable + +## SYNOPSIS +Returns the tables of a model. + +## SYNTAX + +``` +Get-DacTable [-Model] [[-Name] ] [] +``` + +## DESCRIPTION +Provides a table object to access it's definition. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac | Get-DacTable -Name '[Application].[Cities]' + +Schema Name ObjectType +------ ---- ---------- +Application [Application].[Cities] Microsoft.SqlServer.Dac.Model.ModelTypeClass +``` + +## PARAMETERS + +### -Model +Specifies the model to get the tables from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +Specifies a filter on the table name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacTableValuedFunction.md b/docs/Get-DacTableValuedFunction.md index 44f9397..3d21857 100644 --- a/docs/Get-DacTableValuedFunction.md +++ b/docs/Get-DacTableValuedFunction.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacTableValuedFunction - -## SYNOPSIS -Gets the table values functions of a model. - -## SYNTAX - -``` -Get-DacTableValuedFunction [-Model] [[-Name] ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the table valued functions from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -{{ Fill Name Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacTableValuedFunction + +## SYNOPSIS +Gets the table values functions of a model. + +## SYNTAX + +``` +Get-DacTableValuedFunction [-Model] [[-Name] ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the table valued functions from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +{{ Fill Name Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Get-DacView.md b/docs/Get-DacView.md index 105349a..eb49d47 100644 --- a/docs/Get-DacView.md +++ b/docs/Get-DacView.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Get-DacView - -## SYNOPSIS -Gets the views of a model. - -## SYNTAX - -``` -Get-DacView [-Model] [[-Name] ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Model -Specifies the model to get the views from. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Name -{{ Fill Name Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlObject - -## NOTES - -## RELATED LINKS - -[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Get-DacView + +## SYNOPSIS +Gets the views of a model. + +## SYNTAX + +``` +Get-DacView [-Model] [[-Name] ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Model +Specifies the model to get the views from. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Name +{{ Fill Name Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlObject + +## NOTES + +## RELATED LINKS + +[TSqlObject](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlobject) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Import-DacModel.md b/docs/Import-DacModel.md index 74a5ea5..354913c 100644 --- a/docs/Import-DacModel.md +++ b/docs/Import-DacModel.md @@ -1,99 +1,99 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Import-DacModel - -## SYNOPSIS -Imports a model from a dacpac file. - -## SYNTAX - -``` -Import-DacModel [-Path] [-ModelStorageType ] [-LoadAsScriptBackedModel] - [] -``` - -## DESCRIPTION -Provides a model object to access it's definition. - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac - -Version : Sql130 -EngineVersion : 13 -IsScriptBacked : False -DisplayServices : Microsoft.SqlServer.Dac.Model.SqlDisplayServices -CollationComparer : Microsoft.SqlServer.Dac.Model.SqlModelCollationComparer -``` - -## PARAMETERS - -### -LoadAsScriptBackedModel -{{ Fill LoadAsScriptBackedModel Description }} - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ModelStorageType -{{ Fill ModelStorageType Description }} - -```yaml -Type: DacSchemaModelStorageType -Parameter Sets: (All) -Aliases: -Accepted values: File, Memory - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Path -Specifies the path to the dacpac to load the model from. - -```yaml -Type: FileInfo -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -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.IO.FileInfo - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.TSqlModel - -## NOTES - -## RELATED LINKS - -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Import-DacModel + +## SYNOPSIS +Imports a model from a dacpac file. + +## SYNTAX + +``` +Import-DacModel [-Path] [-ModelStorageType ] [-LoadAsScriptBackedModel] + [] +``` + +## DESCRIPTION +Provides a model object to access it's definition. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Import-DacModel -Path ./WideWorldImporters.dacpac + +Version : Sql130 +EngineVersion : 13 +IsScriptBacked : False +DisplayServices : Microsoft.SqlServer.Dac.Model.SqlDisplayServices +CollationComparer : Microsoft.SqlServer.Dac.Model.SqlModelCollationComparer +``` + +## PARAMETERS + +### -LoadAsScriptBackedModel +{{ Fill LoadAsScriptBackedModel Description }} + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ModelStorageType +{{ Fill ModelStorageType Description }} + +```yaml +Type: DacSchemaModelStorageType +Parameter Sets: (All) +Aliases: +Accepted values: File, Memory + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Path +Specifies the path to the dacpac to load the model from. + +```yaml +Type: FileInfo +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +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.IO.FileInfo + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.TSqlModel + +## NOTES + +## RELATED LINKS + +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Import-DacPackage.md b/docs/Import-DacPackage.md index 51c68ac..db3def1 100644 --- a/docs/Import-DacPackage.md +++ b/docs/Import-DacPackage.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Import-DacPackage - -## SYNOPSIS -Imports the package from a dacpac file. - -## SYNTAX - -``` -Import-DacPackage [-Path] [-Access ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -Access -{{ Fill Access Description }} - -```yaml -Type: FileAccess -Parameter Sets: (All) -Aliases: -Accepted values: Read, Write, ReadWrite - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Path -Specifies the path to the dacpac to load the package from. - -```yaml -Type: FileInfo -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -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.IO.FileInfo - -## OUTPUTS - -### Microsoft.SqlServer.Dac.DacPackage - -## NOTES - -## RELATED LINKS - -[DacPackage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Import-DacPackage + +## SYNOPSIS +Imports the package from a dacpac file. + +## SYNTAX + +``` +Import-DacPackage [-Path] [-Access ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -Access +{{ Fill Access Description }} + +```yaml +Type: FileAccess +Parameter Sets: (All) +Aliases: +Accepted values: Read, Write, ReadWrite + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Path +Specifies the path to the dacpac to load the package from. + +```yaml +Type: FileInfo +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +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.IO.FileInfo + +## OUTPUTS + +### Microsoft.SqlServer.Dac.DacPackage + +## NOTES + +## RELATED LINKS + +[DacPackage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage) diff --git a/docs/Install-DacPackage.md b/docs/Install-DacPackage.md index f9fc70e..57f094a 100644 --- a/docs/Install-DacPackage.md +++ b/docs/Install-DacPackage.md @@ -1,115 +1,115 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage -schema: 2.0.0 ---- - -# Install-DacPackage - -## SYNOPSIS -Installs the package content to a database. - -## SYNTAX - -``` -Install-DacPackage [-Package] -DatabaseName [-ExcludeObjectTypes ] - [-Service ] [] -``` - -## DESCRIPTION -Executes the Deploy operation from DacFx. - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> Connect-DacService -DataSource '(LocalDb)\MSSQLLocalDB' -PS C:\> Install-DacPackage ./myDb.dacpac -DatabaseName myDb -``` - -Installs the content of myDb.dacpac into database myDb on localdb and creates the database, if required. - -## PARAMETERS - -### -DatabaseName -Specifies the database to install the package into. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -ExcludeObjectTypes -List of ObjectType, that must not be installed. - -```yaml -Type: ObjectType[] -Parameter Sets: (All) -Aliases: -Accepted values: Aggregates, ApplicationRoles, Assemblies, AssemblyFiles, AsymmetricKeys, BrokerPriorities, Certificates, ColumnEncryptionKeys, ColumnMasterKeys, Contracts, DatabaseOptions, DatabaseRoles, DatabaseTriggers, Defaults, ExtendedProperties, ExternalDataSources, ExternalFileFormats, ExternalTables, Filegroups, Files, FileTables, FullTextCatalogs, FullTextStoplists, MessageTypes, PartitionFunctions, PartitionSchemes, Permissions, Queues, RemoteServiceBindings, RoleMembership, Rules, ScalarValuedFunctions, SearchPropertyLists, SecurityPolicies, Sequences, Services, Signatures, StoredProcedures, SymmetricKeys, Synonyms, Tables, TableValuedFunctions, UserDefinedDataTypes, UserDefinedTableTypes, ClrUserDefinedTypes, Users, Views, XmlSchemaCollections, Audits, Credentials, CryptographicProviders, DatabaseAuditSpecifications, DatabaseEncryptionKeys, DatabaseScopedCredentials, Endpoints, ErrorMessages, EventNotifications, EventSessions, LinkedServerLogins, LinkedServers, Logins, MasterKeys, Routes, ServerAuditSpecifications, ServerRoleMembership, ServerRoles, ServerTriggers, ExternalStreams, ExternalStreamingJobs, DatabaseWorkloadGroups, WorkloadClassifiers, ExternalLibraries, ExternalLanguages - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Package -Specifies the package to install into the database. - -```yaml -Type: DacPackage -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Service -Specifies the server to install the package to. Default is the latest connected service. - -```yaml -Type: DacServices -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.DacPackage - -### System.String - -## OUTPUTS - -### None - -## NOTES - -## RELATED LINKS - -[DacPackage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage) -[DacServices](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacservices) -[ObjectType](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.objecttype) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage +schema: 2.0.0 +--- + +# Install-DacPackage + +## SYNOPSIS +Installs the package content to a database. + +## SYNTAX + +``` +Install-DacPackage [-Package] -DatabaseName [-ExcludeObjectTypes ] + [-Service ] [] +``` + +## DESCRIPTION +Executes the Deploy operation from DacFx. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Connect-DacService -DataSource '(LocalDb)\MSSQLLocalDB' +PS C:\> Install-DacPackage ./myDb.dacpac -DatabaseName myDb +``` + +Installs the content of myDb.dacpac into database myDb on localdb and creates the database, if required. + +## PARAMETERS + +### -DatabaseName +Specifies the database to install the package into. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -ExcludeObjectTypes +List of ObjectType, that must not be installed. + +```yaml +Type: ObjectType[] +Parameter Sets: (All) +Aliases: +Accepted values: Aggregates, ApplicationRoles, Assemblies, AssemblyFiles, AsymmetricKeys, BrokerPriorities, Certificates, ColumnEncryptionKeys, ColumnMasterKeys, Contracts, DatabaseOptions, DatabaseRoles, DatabaseTriggers, Defaults, ExtendedProperties, ExternalDataSources, ExternalFileFormats, ExternalTables, Filegroups, Files, FileTables, FullTextCatalogs, FullTextStoplists, MessageTypes, PartitionFunctions, PartitionSchemes, Permissions, Queues, RemoteServiceBindings, RoleMembership, Rules, ScalarValuedFunctions, SearchPropertyLists, SecurityPolicies, Sequences, Services, Signatures, StoredProcedures, SymmetricKeys, Synonyms, Tables, TableValuedFunctions, UserDefinedDataTypes, UserDefinedTableTypes, ClrUserDefinedTypes, Users, Views, XmlSchemaCollections, Audits, Credentials, CryptographicProviders, DatabaseAuditSpecifications, DatabaseEncryptionKeys, DatabaseScopedCredentials, Endpoints, ErrorMessages, EventNotifications, EventSessions, LinkedServerLogins, LinkedServers, Logins, MasterKeys, Routes, ServerAuditSpecifications, ServerRoleMembership, ServerRoles, ServerTriggers, ExternalStreams, ExternalStreamingJobs, DatabaseWorkloadGroups, WorkloadClassifiers, ExternalLibraries, ExternalLanguages + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Package +Specifies the package to install into the database. + +```yaml +Type: DacPackage +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Service +Specifies the server to install the package to. Default is the latest connected service. + +```yaml +Type: DacServices +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.DacPackage + +### System.String + +## OUTPUTS + +### None + +## NOTES + +## RELATED LINKS + +[DacPackage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage) +[DacServices](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacservices) +[ObjectType](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.objecttype) diff --git a/docs/New-DacCreateScript.md b/docs/New-DacCreateScript.md index bb5e598..9dc6074 100644 --- a/docs/New-DacCreateScript.md +++ b/docs/New-DacCreateScript.md @@ -1,139 +1,139 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# New-DacCreateScript - -## SYNOPSIS -Generates a script to create a database from a package. - -## SYNTAX - -``` -New-DacCreateScript [-Package] [-DatabaseName ] [-CreateNewDatabase] - [-IncludeTransactionalScripts] [-CommentOutSetVarDeclarations] [-Variables ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -CommentOutSetVarDeclarations -{{ Fill CommentOutSetVarDeclarations Description }} - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CreateNewDatabase -{{ Fill CreateNewDatabase Description }} - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DatabaseName -{{ Fill DatabaseName Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -IncludeTransactionalScripts -{{ Fill IncludeTransactionalScripts Description }} - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Package -{{ Fill Package Description }} - -```yaml -Type: DacPackage -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) -Accept wildcard characters: False -``` - -### -Variables -{{ Fill Variables Description }} - -```yaml -Type: Hashtable -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -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.SqlServer.Dac.DacPackage - -## OUTPUTS - -### System.String - -## NOTES - -## RELATED LINKS - -[DacPackage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# New-DacCreateScript + +## SYNOPSIS +Generates a script to create a database from a package. + +## SYNTAX + +``` +New-DacCreateScript [-Package] [-DatabaseName ] [-CreateNewDatabase] + [-IncludeTransactionalScripts] [-CommentOutSetVarDeclarations] [-Variables ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -CommentOutSetVarDeclarations +{{ Fill CommentOutSetVarDeclarations Description }} + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CreateNewDatabase +{{ Fill CreateNewDatabase Description }} + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseName +{{ Fill DatabaseName Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IncludeTransactionalScripts +{{ Fill IncludeTransactionalScripts Description }} + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Package +{{ Fill Package Description }} + +```yaml +Type: DacPackage +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName, ByValue) +Accept wildcard characters: False +``` + +### -Variables +{{ Fill Variables Description }} + +```yaml +Type: Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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.SqlServer.Dac.DacPackage + +## OUTPUTS + +### System.String + +## NOTES + +## RELATED LINKS + +[DacPackage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage) diff --git a/docs/Set-DacPackage.md b/docs/Set-DacPackage.md index 71dd489..aec4a0b 100644 --- a/docs/Set-DacPackage.md +++ b/docs/Set-DacPackage.md @@ -1,96 +1,96 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Set-DacPackage - -## SYNOPSIS -Updates the model of a package. - -## SYNTAX - -``` -Set-DacPackage [-Package] [-Model] [-IgnoreCode ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -IgnoreCode -{{ Fill IgnoreCode Description }} - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Model -Specifies the model to set. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -Package -{{ Fill Package Description }} - -```yaml -Type: DacPackage -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -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.SqlServer.Dac.DacPackage - -### Microsoft.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.DacPackage - -## NOTES - -## RELATED LINKS - -[DacPackage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage) -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Set-DacPackage + +## SYNOPSIS +Updates the model of a package. + +## SYNTAX + +``` +Set-DacPackage [-Package] [-Model] [-IgnoreCode ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -IgnoreCode +{{ Fill IgnoreCode Description }} + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Model +Specifies the model to set. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Package +{{ Fill Package Description }} + +```yaml +Type: DacPackage +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +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.SqlServer.Dac.DacPackage + +### Microsoft.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.DacPackage + +## NOTES + +## RELATED LINKS + +[DacPackage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.dacpackage) +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) diff --git a/docs/Test-DacModel.md b/docs/Test-DacModel.md index 00c7607..d8231d4 100644 --- a/docs/Test-DacModel.md +++ b/docs/Test-DacModel.md @@ -1,79 +1,79 @@ ---- -external help file: PsDac.dll-Help.xml -Module Name: PsDac -online version: -schema: 2.0.0 ---- - -# Test-DacModel - -## SYNOPSIS -Validates a model. - -## SYNTAX - -``` -Test-DacModel [-Model] [-IgnoreCode ] [] -``` - -## DESCRIPTION -{{ Fill in the Description }} - -## EXAMPLES - -### Example 1 -```powershell -PS C:\> {{ Add example code here }} -``` - -{{ Add example description here }} - -## PARAMETERS - -### -IgnoreCode -{{ Fill IgnoreCode Description }} - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Model -Specifies the model to test. - -```yaml -Type: TSqlModel -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -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.SqlServer.Dac.Model.TSqlModel - -## OUTPUTS - -### Microsoft.SqlServer.Dac.Model.DacModelMessage - -## NOTES - -## RELATED LINKS - -[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) -[DacModelMessage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.dacmodelmessage) +--- +external help file: PsDac.dll-Help.xml +Module Name: PsDac +online version: +schema: 2.0.0 +--- + +# Test-DacModel + +## SYNOPSIS +Validates a model. + +## SYNTAX + +``` +Test-DacModel [-Model] [-IgnoreCode ] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> {{ Add example code here }} +``` + +{{ Add example description here }} + +## PARAMETERS + +### -IgnoreCode +{{ Fill IgnoreCode Description }} + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Model +Specifies the model to test. + +```yaml +Type: TSqlModel +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +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.SqlServer.Dac.Model.TSqlModel + +## OUTPUTS + +### Microsoft.SqlServer.Dac.Model.DacModelMessage + +## NOTES + +## RELATED LINKS + +[TSqlModel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.tsqlmodel) +[DacModelMessage](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.model.dacmodelmessage) From b0bd00176d5de77d1d7e75aaedde0fa3552ff1a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Jul 2022 19:09:06 +0000 Subject: [PATCH 05/14] Bump System.Management.Automation from 7.0.8 to 7.2.5 in /src/PsDac Bumps [System.Management.Automation](https://github.com/PowerShell/PowerShell) from 7.0.8 to 7.2.5. - [Release notes](https://github.com/PowerShell/PowerShell/releases) - [Commits](https://github.com/PowerShell/PowerShell/compare/v7.0.8...v7.2.5) --- updated-dependencies: - dependency-name: System.Management.Automation dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/PsDac/PsDac.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PsDac/PsDac.csproj b/src/PsDac/PsDac.csproj index 149b782..fa22e46 100644 --- a/src/PsDac/PsDac.csproj +++ b/src/PsDac/PsDac.csproj @@ -7,7 +7,7 @@ - + From 563d7469a388746d0abea204394f25890822e354 Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Thu, 7 Jul 2022 21:15:21 +0200 Subject: [PATCH 06/14] update netframework --- src/PsDac/PsDac.csproj | 2 +- test/sql-server-samples | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PsDac/PsDac.csproj b/src/PsDac/PsDac.csproj index fa22e46..c8bd90a 100644 --- a/src/PsDac/PsDac.csproj +++ b/src/PsDac/PsDac.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1 + net6.0 PsDac diff --git a/test/sql-server-samples b/test/sql-server-samples index 750e273..03e4eb1 160000 --- a/test/sql-server-samples +++ b/test/sql-server-samples @@ -1 +1 @@ -Subproject commit 750e273e94f806d69ed92a1735a2713fae7d9fcf +Subproject commit 03e4eb1802030fc0d57cb249cb33752c8e91c0fc From b04c1bf2b3b57a747c52c30c2aa6a527d43aa790 Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Sat, 9 Jul 2022 12:20:53 +0200 Subject: [PATCH 07/14] fixed git config --- .gitmodules | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a134804 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "test/sql-server-samples"] + path = test/sql-server-samples + url = https://github.com/microsoft/sql-server-samples.git From 82eed0e06670f6a7f9e02a46f8c6bd0550bbaa6b Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Sat, 9 Jul 2022 12:48:09 +0200 Subject: [PATCH 08/14] update wwi --- test/sql-server-samples | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sql-server-samples b/test/sql-server-samples index 03e4eb1..6929800 160000 --- a/test/sql-server-samples +++ b/test/sql-server-samples @@ -1 +1 @@ -Subproject commit 03e4eb1802030fc0d57cb249cb33752c8e91c0fc +Subproject commit 6929800cc6bbbcdf2410f85a6fc28ed7e05ac577 From cf9c45365e8b9f896c83a6781d848aaa0e3bc08a Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Sat, 9 Jul 2022 13:07:01 +0200 Subject: [PATCH 09/14] fixed variables --- test/Install-Package.Tests.ps1 | 188 +++++++++++++++++---------------- 1 file changed, 95 insertions(+), 93 deletions(-) diff --git a/test/Install-Package.Tests.ps1 b/test/Install-Package.Tests.ps1 index 9d68e0d..b00c42c 100644 --- a/test/Install-Package.Tests.ps1 +++ b/test/Install-Package.Tests.ps1 @@ -1,93 +1,95 @@ -#Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' }, @{ ModuleName='PsSqlClient'; ModuleVersion='1.2.0' }, @{ ModuleName='PsSmo'; ModuleVersion='0.4.0' }, @{ ModuleName='PsSqlTestServer'; ModuleVersion='1.2.0' } - -Describe 'Install-DacPackage' { - - BeforeDiscovery { - [System.IO.FileInfo] $Script:TestDbDacPacFile = "$PsScriptRoot\testdb\bin\Debug\testdb.dacpac" - [System.IO.FileInfo] $Script:WwiDacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" - - if ( -Not $Script:TestDbDacPacFile.Exists ) { - Write-Warning "Skip tests with testdb.dacpac requirement." - } - - if ( -Not $Script:WwiDacPacFile.Exists ) { - Write-Warning "Skip tests with WideWorldImporters.dacpac requirement." - } - } - - BeforeAll { - Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop - } - - Context 'Server' { - - BeforeAll { - $Script:TestServer = New-SqlTestInstance - $Script:SqlConnection = Connect-TSqlInstance -ConnectionString $Script:TestServer.ConnectionString - } - - AfterAll { - $Script:TestServer | Remove-SqlTestInstance - } - - Context 'DacService' { - - BeforeAll { - $Script:DacService = Connect-DacService -ConnectionString $Script:TestServer.ConnectionString -ErrorAction Stop - } - - AfterAll { - if ( $Script:DacService ) { - Disconnect-DacService - } - } - - Context 'Database' { - - BeforeEach { - [string] $Script:DatabaseName = ( [string](New-Guid) ).Substring(0, 8) - } - - AfterEach { - Invoke-TSqlCommand "DROP DATABASE [$Script:DatabaseName];" - } - - Context 'testdb DacPac' -Skip:( -Not $Script:TestDbDacPacFile.Exists ) { - - BeforeAll { - $Script:DacPac = Import-DacPackage $Script:TestDbDacPacFile - } - - It 'Creates database objects of a dacpac' { - Install-DacPackage $Script:DacPac -DatabaseName $Script:DatabaseName - - Invoke-TSqlCommand "USE [$Script:DatabaseName]" -Connection $Script:SqlConnection - $Script:SmoConnection = Connect-SmoInstance -Connection $Script:SqlConnection - - Get-SmoTable -Name MyTable | Should -Not -BeNullOrEmpty - - Disconnect-SmoInstance -Instance $Script:SmoConnection - } - } - - Context 'wwi DacPac' -Skip:( -Not $Script:WwiDacPacFile.Exists ) { - - BeforeAll { - $Script:DacPac = Import-DacPackage -Path $Script:WwiDacPacFile - } - - It 'Creates database objects of a dacpac' { - Install-DacPackage $Script:DacPac -DatabaseName $Script:DatabaseName #-ExcludeObjectTypes Logins, Files, Filegroups -Verbose - - Invoke-TSqlCommand "USE [$Script:DatabaseName]" -Connection $Script:SqlConnection - $Script:SmoConnection = Connect-SmoInstance -Connection $Script:SqlConnection - - Get-SmoTable -Name MyTable | Should -Not -BeNullOrEmpty - - Disconnect-SmoInstance -Instance $Script:SmoConnection - } - } - } - } - } -} +#Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' }, @{ ModuleName='PsSqlClient'; ModuleVersion='1.2.0' }, @{ ModuleName='PsSmo'; ModuleVersion='0.4.0' }, @{ ModuleName='PsSqlTestServer'; ModuleVersion='1.2.0' } + +param ( + [System.IO.FileInfo] $TestDbDacPacFile = "$PsScriptRoot\testdb\bin\Debug\testdb.dacpac", + [System.IO.FileInfo] $WwiDacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" +) + +Describe 'Install-DacPackage' { + + BeforeDiscovery { + if ( -Not $TestDbDacPacFile.Exists ) { + Write-Warning "Skip tests with testdb.dacpac requirement." + } + + if ( -Not $WwiDacPacFile.Exists ) { + Write-Warning "Skip tests with WideWorldImporters.dacpac requirement." + } + } + + BeforeAll { + Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop + } + + Context 'Server' { + + BeforeAll { + $TestServer = New-SqlTestInstance + $SqlConnection = Connect-TSqlInstance -ConnectionString $TestServer.ConnectionString + } + + AfterAll { + $TestServer | Remove-SqlTestInstance + } + + Context 'DacService' { + + BeforeAll { + $DacService = Connect-DacService -ConnectionString $TestServer.ConnectionString -ErrorAction Stop + } + + AfterAll { + if ( $DacService ) { + Disconnect-DacService + } + } + + Context 'Database' { + + BeforeEach { + [string] $DatabaseName = ( [string](New-Guid) ).Substring(0, 8) + } + + AfterEach { + Invoke-TSqlCommand "DROP DATABASE [$DatabaseName];" + } + + Context 'testdb DacPac' -Skip:( -Not $TestDbDacPacFile.Exists ) { + + BeforeAll { + $DacPac = Import-DacPackage -Path $TestDbDacPacFile.FullName + } + + It 'Creates database objects of a dacpac' { + Install-DacPackage $DacPac -DatabaseName $DatabaseName + + Invoke-TSqlCommand "USE [$DatabaseName]" -Connection $SqlConnection + $SmoConnection = Connect-SmoInstance -Connection $SqlConnection + + Get-SmoTable -Name MyTable | Should -Not -BeNullOrEmpty + + Disconnect-SmoInstance -Instance $SmoConnection + } + } + + Context 'wwi DacPac' -Skip:( -Not $WwiDacPacFile.Exists ) { + + BeforeAll { + $DacPac = Import-DacPackage -Path $WwiDacPacFile.FullName + } + + It 'Creates database objects of a dacpac' { + Install-DacPackage $DacPac -DatabaseName $DatabaseName #-ExcludeObjectTypes Logins, Files, Filegroups -Verbose + + Invoke-TSqlCommand "USE [$DatabaseName]" -Connection $SqlConnection + $SmoConnection = Connect-SmoInstance -Connection $SqlConnection + + Get-SmoTable -Name MyTable | Should -Not -BeNullOrEmpty + + Disconnect-SmoInstance -Instance $SmoConnection + } + } + } + } + } +} From 6bedd6e97d7c4d7205a42c938629f69e6e72ec0b Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Sat, 30 Jul 2022 20:32:27 +0200 Subject: [PATCH 10/14] update --- docs/Install-DacPackage.md | 2 +- test/sql-server-samples | 2 +- test/testdb/testdb.sqlproj | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/Install-DacPackage.md b/docs/Install-DacPackage.md index 57f094a..31a1a1f 100644 --- a/docs/Install-DacPackage.md +++ b/docs/Install-DacPackage.md @@ -54,7 +54,7 @@ List of ObjectType, that must not be installed. Type: ObjectType[] Parameter Sets: (All) Aliases: -Accepted values: Aggregates, ApplicationRoles, Assemblies, AssemblyFiles, AsymmetricKeys, BrokerPriorities, Certificates, ColumnEncryptionKeys, ColumnMasterKeys, Contracts, DatabaseOptions, DatabaseRoles, DatabaseTriggers, Defaults, ExtendedProperties, ExternalDataSources, ExternalFileFormats, ExternalTables, Filegroups, Files, FileTables, FullTextCatalogs, FullTextStoplists, MessageTypes, PartitionFunctions, PartitionSchemes, Permissions, Queues, RemoteServiceBindings, RoleMembership, Rules, ScalarValuedFunctions, SearchPropertyLists, SecurityPolicies, Sequences, Services, Signatures, StoredProcedures, SymmetricKeys, Synonyms, Tables, TableValuedFunctions, UserDefinedDataTypes, UserDefinedTableTypes, ClrUserDefinedTypes, Users, Views, XmlSchemaCollections, Audits, Credentials, CryptographicProviders, DatabaseAuditSpecifications, DatabaseEncryptionKeys, DatabaseScopedCredentials, Endpoints, ErrorMessages, EventNotifications, EventSessions, LinkedServerLogins, LinkedServers, Logins, MasterKeys, Routes, ServerAuditSpecifications, ServerRoleMembership, ServerRoles, ServerTriggers, ExternalStreams, ExternalStreamingJobs, DatabaseWorkloadGroups, WorkloadClassifiers, ExternalLibraries, ExternalLanguages +Accepted values: Aggregates, ApplicationRoles, Assemblies, AssemblyFiles, AsymmetricKeys, BrokerPriorities, Certificates, ColumnEncryptionKeys, ColumnMasterKeys, Contracts, DatabaseOptions, DatabaseRoles, DatabaseTriggers, Defaults, ExtendedProperties, ExternalDataSources, ExternalFileFormats, ExternalTables, Filegroups, Files, FileTables, FullTextCatalogs, FullTextStoplists, MessageTypes, PartitionFunctions, PartitionSchemes, Permissions, Queues, RemoteServiceBindings, RoleMembership, Rules, ScalarValuedFunctions, SearchPropertyLists, SecurityPolicies, Sequences, Services, Signatures, StoredProcedures, SymmetricKeys, Synonyms, Tables, TableValuedFunctions, UserDefinedDataTypes, UserDefinedTableTypes, ClrUserDefinedTypes, Users, Views, XmlSchemaCollections, Audits, Credentials, CryptographicProviders, DatabaseAuditSpecifications, DatabaseEncryptionKeys, DatabaseScopedCredentials, Endpoints, ErrorMessages, EventNotifications, EventSessions, LinkedServerLogins, LinkedServers, Logins, MasterKeys, Routes, ServerAuditSpecifications, ServerRoleMembership, ServerRoles, ServerTriggers Required: False Position: Named diff --git a/test/sql-server-samples b/test/sql-server-samples index 6929800..3171a3b 160000 --- a/test/sql-server-samples +++ b/test/sql-server-samples @@ -1 +1 @@ -Subproject commit 6929800cc6bbbcdf2410f85a6fc28ed7e05ac577 +Subproject commit 3171a3bdeac7cd45cd03ce7b41975010123adaf7 diff --git a/test/testdb/testdb.sqlproj b/test/testdb/testdb.sqlproj index e8dea17..054a750 100644 --- a/test/testdb/testdb.sqlproj +++ b/test/testdb/testdb.sqlproj @@ -16,12 +16,13 @@ 1033, CI BySchemaAndSchemaType True - v4.5 + v4.5.2 CS Properties False True True + bin\Release\ From 7f423e88172eb42e6eefd2df1a721b4745140d48 Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Sat, 30 Jul 2022 21:15:14 +0200 Subject: [PATCH 11/14] change connect default parameter set --- CHANGELOG.md | 4 + docs/Connect-DacService.md | 4 +- src/PsDac/Service/ConnectServiceCommand.cs | 10 ++- test/Connect-Service.Tests.ps1 | 23 +++--- test/Get-Column.Tests.ps1 | 26 +++--- test/Get-DataType.Tests.ps1 | 94 +++++++++++----------- test/Get-ForeignKey.Tests.ps1 | 46 +++++------ test/Get-Schema.Tests.ps1 | 26 +++--- test/Get-Table.Tests.ps1 | 24 +++--- test/Import-Model.Tests.ps1 | 14 ++-- test/Import-Package.Tests.ps1 | 14 ++-- test/Install-Package.Tests.ps1 | 10 +-- 12 files changed, 153 insertions(+), 142 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23e1dae..b71e37b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Default parameter set ConnectionString for Connect-Service. + ## [1.0.0] - 2022-05-12 ### Added diff --git a/docs/Connect-DacService.md b/docs/Connect-DacService.md index 82bc7ed..77fc891 100644 --- a/docs/Connect-DacService.md +++ b/docs/Connect-DacService.md @@ -12,7 +12,7 @@ Connects a database instance using DacServices. ## SYNTAX -### ConnectionString +### ConnectionString (Default) ``` Connect-DacService [-ConnectionString] [] ``` @@ -49,7 +49,7 @@ Aliases: Required: True Position: 0 Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` diff --git a/src/PsDac/Service/ConnectServiceCommand.cs b/src/PsDac/Service/ConnectServiceCommand.cs index fca92ac..d078814 100644 --- a/src/PsDac/Service/ConnectServiceCommand.cs +++ b/src/PsDac/Service/ConnectServiceCommand.cs @@ -5,21 +5,23 @@ namespace PsDac { - [Cmdlet(VerbsCommunications.Connect, "Service")] + [Cmdlet(VerbsCommunications.Connect, "Service", DefaultParameterSetName = ConnectionStringParameterSetName)] [OutputType(typeof(DacServices))] public class ConnectServiceCommand : PSCmdlet { + const string ConnectionStringParameterSetName = "ConnectionString"; + const string DataSourceParameterSetName = "DataSource"; + [Parameter( - ParameterSetName = "ConnectionString", + ParameterSetName = ConnectionStringParameterSetName, Position = 0, Mandatory = true, - ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [ValidateNotNullOrEmpty()] public string ConnectionString { get; set; } [Parameter( - ParameterSetName = "DataSource", + ParameterSetName = DataSourceParameterSetName, Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true)] diff --git a/test/Connect-Service.Tests.ps1 b/test/Connect-Service.Tests.ps1 index 39ed257..3d63e28 100644 --- a/test/Connect-Service.Tests.ps1 +++ b/test/Connect-Service.Tests.ps1 @@ -1,31 +1,36 @@ #Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' }, @{ ModuleName='PsSqlClient'; ModuleVersion='1.2.0' }, @{ ModuleName='PsSmo'; ModuleVersion='0.4.0' }, @{ ModuleName='PsSqlTestServer'; ModuleVersion='1.2.0' } -Describe 'Connect-DacService' { +Describe Connect-Service { BeforeAll { Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop } - Context 'Test Database' { + Context TestDatabase { BeforeAll { - $Script:TestServer = New-SqlTestInstance + $TestServer = New-SqlTestInstance } AfterAll { - if ( $Script:TestServer ) { - $Script:TestServer | Remove-SqlTestInstance + if ( $TestServer ) { + $TestServer | Remove-SqlTestInstance } } It 'Creates a service by datasource' { - $service = Connect-DacService -DataSource $Script:TestServer.DataSource -ErrorAction Stop - $service | Should -Not -BeNullOrEmpty + $Service = Connect-DacService -DataSource $TestServer.DataSource -ErrorAction Stop + $Service | Should -Not -BeNullOrEmpty } It 'Creates a service by connection string' { - $service = Connect-DacService -ConnectionString $Script:TestServer.ConnectionString -ErrorAction Stop - $service | Should -Not -BeNullOrEmpty + $Service = Connect-DacService -ConnectionString $TestServer.ConnectionString -ErrorAction Stop + $Service | Should -Not -BeNullOrEmpty + } + + It 'Creates a service by pipeline' { + $Service = $TestServer | Connect-DacService -ErrorAction Stop + $Service | Should -Not -BeNullOrEmpty } } } diff --git a/test/Get-Column.Tests.ps1 b/test/Get-Column.Tests.ps1 index 8da58c2..0639c72 100644 --- a/test/Get-Column.Tests.ps1 +++ b/test/Get-Column.Tests.ps1 @@ -1,34 +1,34 @@ #Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' } -Describe 'Get-DacColumn' { +param ( + [System.IO.FileInfo] $DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" +) - BeforeDiscovery { - [System.IO.FileInfo] $Global:DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" - } +Describe Get-Column { BeforeAll { Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop } - Context 'DacPac' -Skip:( -Not $Global:DacPacFile.Exists ) { - Context 'Model' { + Context DacPac -Skip:( -Not $DacPacFile.Exists ) { + Context Model { BeforeAll { - $Script:Model = Import-DacModel -Path $Global:DacPacFile + $Model = Import-DacModel -Path $DacPacFile } Context 'Table' { BeforeAll { - $Script:Table = $Script:Model | Get-DacTable -Name '[Application].[Cities]' + $Table = $Model | Get-DacTable -Name '[Application].[Cities]' } It 'Returns all columns of a table' { - $columns = $Script:Table | Get-DacColumn - $columns | Should -Not -BeNullOrEmpty - $columns.Count | Should -BeGreaterThan 3 + $Columns = $Table | Get-DacColumn + $Columns | Should -Not -BeNullOrEmpty + $Columns.Count | Should -BeGreaterThan 3 } It 'Returns a column of a table by name' { - $column = $Script:Table | Get-DacColumn -Name '[Application].[Cities].[CityID]' - $column | Should -Not -BeNullOrEmpty + $Column = $Table | Get-DacColumn -Name '[Application].[Cities].[CityID]' + $Column | Should -Not -BeNullOrEmpty } } } diff --git a/test/Get-DataType.Tests.ps1 b/test/Get-DataType.Tests.ps1 index f59261e..605a932 100644 --- a/test/Get-DataType.Tests.ps1 +++ b/test/Get-DataType.Tests.ps1 @@ -5,7 +5,7 @@ param ( [System.IO.FileInfo] $WwiDacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" ) -Describe 'Get-DacDataType' { +Describe Get-DataType { BeforeDiscovery { if ( -Not $TestDbDacPacFile.Exists ) { @@ -22,31 +22,31 @@ Describe 'Get-DacDataType' { } Context 'testdb DacPac' -Skip:( -Not $TestDbDacPacFile.Exists ) { - Context 'Model' { + Context Model { BeforeAll { - $Script:Model = Import-DacModel -Path $TestDbDacPacFile + $Model = Import-DacModel -Path $TestDbDacPacFile } - Context 'Table' { + Context Table { BeforeAll { - $Script:Table = $Script:Model | Get-DacTable -Name '[dbo].[MyTable]' + $Table = $Model | Get-DacTable -Name '[dbo].[MyTable]' } Context 'geography Column' { BeforeAll { - $Script:Column = $Script:Table | Get-DacColumn -Name '[dbo].[MyTable].[Location]' + $Column = $Table | Get-DacColumn -Name '[dbo].[MyTable].[Location]' } It 'Returns column info' { - $type = $Script:Column | Get-DacDataType - $type | Should -Not -BeNullOrEmpty - $type.Name | Should -Be 'geography' - $type.Length | Should -Be 0 - $type.Precision | Should -Be 0 - $type.Scale | Should -Be 0 - $type.IsNullable | Should -Be $true - $type.IsMax | Should -Be $false + $Type = $Column | Get-DacDataType + $Type | Should -Not -BeNullOrEmpty + $Type.Name | Should -Be 'geography' + $Type.Length | Should -Be 0 + $Type.Precision | Should -Be 0 + $Type.Scale | Should -Be 0 + $Type.IsNullable | Should -Be $true + $Type.IsMax | Should -Be $false } } } @@ -54,66 +54,66 @@ Describe 'Get-DacDataType' { } Context 'wwi DacPac' -Skip:( -Not $WwiDacPacFile.Exists ) { - Context 'Model' { + Context Model { BeforeAll { - $Script:Model = Import-DacModel -Path $WwiDacPacFile + $Model = Import-DacModel -Path $WwiDacPacFile } - Context 'Table' { + Context Table { BeforeAll { - $Script:Table = $Script:Model | Get-DacTable -Name '[Purchasing].[PurchaseOrderLines]' + $Table = $Model | Get-DacTable -Name '[Purchasing].[PurchaseOrderLines]' } Context 'INT Column' { BeforeAll { - $Script:Column = $Script:Table | Get-DacColumn -Name '[Purchasing].[PurchaseOrderLines].[PurchaseOrderLineID]' + $Column = $Table | Get-DacColumn -Name '[Purchasing].[PurchaseOrderLines].[PurchaseOrderLineID]' } It 'Returns column info' { - $type = $Script:Column | Get-DacDataType - $type | Should -Not -BeNullOrEmpty - $type.Name | Should -Be 'int' - $type.Length | Should -Be 0 - $type.Precision | Should -Be 0 - $type.Scale | Should -Be 0 - $type.IsNullable | Should -Be $false - $type.IsMax | Should -Be $false + $Type = $Column | Get-DacDataType + $Type | Should -Not -BeNullOrEmpty + $Type.Name | Should -Be 'int' + $Type.Length | Should -Be 0 + $Type.Precision | Should -Be 0 + $Type.Scale | Should -Be 0 + $Type.IsNullable | Should -Be $false + $Type.IsMax | Should -Be $false } } Context 'VARCHAR Column' { BeforeAll { - $Script:Column = $Script:Table | Get-DacColumn -Name '[Purchasing].[PurchaseOrderLines].[Description]' + $Column = $Table | Get-DacColumn -Name '[Purchasing].[PurchaseOrderLines].[Description]' } It 'Returns column info' { - $type = $Script:Column | Get-DacDataType - $type | Should -Not -BeNullOrEmpty - $type.Name | Should -Be 'NVarChar' - $type.Length | Should -Be 100 - $type.Precision | Should -Be 0 - $type.Scale | Should -Be 0 - $type.IsNullable | Should -Not -BeNullOrEmpty - $type.IsMax | Should -Not -BeNullOrEmpty - $type.Collation | Should -Be $null + $Type = $Column | Get-DacDataType + $Type | Should -Not -BeNullOrEmpty + $Type.Name | Should -Be 'NVarChar' + $Type.Length | Should -Be 100 + $Type.Precision | Should -Be 0 + $Type.Scale | Should -Be 0 + $Type.IsNullable | Should -Not -BeNullOrEmpty + $Type.IsMax | Should -Not -BeNullOrEmpty + $Type.Collation | Should -Be $null } } Context 'DECIMAL Column' { BeforeAll { - $Script:Column = $Script:Table | Get-DacColumn -Name '[Purchasing].[PurchaseOrderLines].[ExpectedUnitPricePerOuter]' + $Column = $Table | Get-DacColumn -Name '[Purchasing].[PurchaseOrderLines].[ExpectedUnitPricePerOuter]' } It 'Returns column info' { - $type = $Script:Column | Get-DacDataType - $type | Should -Not -BeNullOrEmpty - $type.Name | Should -Be 'Decimal' - $type.Length | Should -Be 0 - $type.Precision | Should -Be 18 - $type.Scale | Should -Be 2 - $type.IsNullable | Should -Not -BeNullOrEmpty - $type.IsMax | Should -Not -BeNullOrEmpty - $type.Collation | Should -Be $null + $Type = $Column | Get-DacDataType + $Type | Should -Not -BeNullOrEmpty + $Type.Name | Should -Be 'Decimal' + $Type.Length | Should -Be 0 + $Type.Precision | Should -Be 18 + $Type.Scale | Should -Be 2 + $Type.IsNullable | Should -Not -BeNullOrEmpty + $Type.IsMax | Should -Not -BeNullOrEmpty + $Type.Collation | Should -Be $null } } } diff --git a/test/Get-ForeignKey.Tests.ps1 b/test/Get-ForeignKey.Tests.ps1 index c9da647..6c0992f 100644 --- a/test/Get-ForeignKey.Tests.ps1 +++ b/test/Get-ForeignKey.Tests.ps1 @@ -1,47 +1,47 @@ #Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' } -Describe 'Get-DacForeignKey' { +param ( + [System.IO.FileInfo] $DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" +) - BeforeDiscovery { - [System.IO.FileInfo] $Global:DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" - } +Describe Get-ForeignKey { BeforeAll { Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop } - Context 'DacPac' -Skip:( -Not $Global:DacPacFile.Exists ) { - Context 'Model' { + Context DacPac -Skip:( -Not $DacPacFile.Exists ) { + Context Model { BeforeAll { - $Script:Model = Import-DacModel -Path $Global:DacPacFile + $Model = Import-DacModel -Path $DacPacFile } It 'Returns all foreign keys of a model' { - $keys = $Script:Model | Get-DacForeignKey - $keys | Should -Not -BeNullOrEmpty - $keys.Count | Should -BeGreaterThan 5 + $Keys = $Model | Get-DacForeignKey + $Keys | Should -Not -BeNullOrEmpty + $Keys.Count | Should -BeGreaterThan 5 } It 'Returns all foreign keys of a model by name' { - $key = $Script:Model | Get-DacForeignKey -Name '[Application].[FK_Application_Cities_Application_People]' - $key | Should -Not -BeNullOrEmpty - $key.Name | Should -Be '[Application].[FK_Application_Cities_Application_People]' - $key.ObjectType.Name | Should -Be 'ForeignKeyConstraint' + $Key = $Model | Get-DacForeignKey -Name '[Application].[FK_Application_Cities_Application_People]' + $Key | Should -Not -BeNullOrEmpty + $Key.Name | Should -Be '[Application].[FK_Application_Cities_Application_People]' + $Key.ObjectType.Name | Should -Be 'ForeignKeyConstraint' - $parent = $key.GetParent() - $parent.Name | Should -Be '[Application].[Cities]' + $Parent = $Key.GetParent() + $Parent.Name | Should -Be '[Application].[Cities]' - $referenced = $key.GetReferenced() + $Referenced = $Key.GetReferenced() - $sourceTable, $targetTable = $referenced | Where-Object { $_.ObjectType.Name -eq 'Table' } + $SourceTable, $TargetTable = $Referenced | Where-Object { $_.ObjectType.Name -eq 'Table' } - $sourceTable.Name | Should -Be '[Application].[Cities]' - $targetTable.Name | Should -Be '[Application].[People]' + $SourceTable.Name | Should -Be '[Application].[Cities]' + $TargetTable.Name | Should -Be '[Application].[People]' - $sourceColumn, $targetColumn = $referenced | Where-Object { $_.ObjectType.Name -eq 'Column' } + $SourceColumn, $TargetColumn = $Referenced | Where-Object { $_.ObjectType.Name -eq 'Column' } - $sourceColumn.Name | Should -Be '[Application].[Cities].[LastEditedBy]' - $targetColumn.Name | Should -Be '[Application].[People].[PersonID]' + $SourceColumn.Name | Should -Be '[Application].[Cities].[LastEditedBy]' + $TargetColumn.Name | Should -Be '[Application].[People].[PersonID]' } } } diff --git a/test/Get-Schema.Tests.ps1 b/test/Get-Schema.Tests.ps1 index 956dcc4..0470eed 100644 --- a/test/Get-Schema.Tests.ps1 +++ b/test/Get-Schema.Tests.ps1 @@ -1,31 +1,31 @@ #Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' } -Describe 'Get-DacSchema' { +param ( + [System.IO.FileInfo] $DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" +) - BeforeDiscovery { - [System.IO.FileInfo] $Global:DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" - } +Describe Get-Schema { BeforeAll { Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop } - Context 'DacPac' -Skip:( -Not $Global:DacPacFile.Exists ) { - Context 'Model' { + Context DacPac -Skip:( -Not $DacPacFile.Exists ) { + Context Model { BeforeAll { - $Script:Model = Import-DacModel -Path $Global:DacPacFile + $Model = Import-DacModel -Path $DacPacFile } It 'Returns all schemas of a model' { - $schemas = $Script:Model | Get-DacSchema - $schemas | Should -Not -BeNullOrEmpty - $schemas.Count | Should -BeGreaterThan 3 + $Schemas = $Model | Get-DacSchema + $Schemas | Should -Not -BeNullOrEmpty + $Schemas.Count | Should -BeGreaterThan 3 } It 'Returns all schemas of a model by name' { - $schema = $Script:Model | Get-DacSchema -Name 'Application' - $schema | Should -Not -BeNullOrEmpty - $schema.Name | Should -Be '[Application]' + $Schema = $Model | Get-DacSchema -Name 'Application' + $Schema | Should -Not -BeNullOrEmpty + $Schema.Name | Should -Be '[Application]' } } } diff --git a/test/Get-Table.Tests.ps1 b/test/Get-Table.Tests.ps1 index d037ab0..de27c32 100644 --- a/test/Get-Table.Tests.ps1 +++ b/test/Get-Table.Tests.ps1 @@ -1,30 +1,30 @@ #Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' } -Describe 'Get-DacTable' { +param ( + [System.IO.FileInfo] $DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" +) - BeforeDiscovery { - [System.IO.FileInfo] $Global:DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" - } +Describe Get-Table { BeforeAll { Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop } - Context 'DacPac' -Skip:( -Not $Global:DacPacFile.Exists ) { - Context 'Model' { + Context DacPac -Skip:( -Not $DacPacFile.Exists ) { + Context Model { BeforeAll { - $Script:Model = Import-DacModel -Path $Global:DacPacFile + $Model = Import-DacModel -Path $DacPacFile } It 'Returns all tables of a model' { - $tables = $Script:Model | Get-DacTable - $tables | Should -Not -BeNullOrEmpty - $tables.Count | Should -BeGreaterThan 5 + $Tables = $Model | Get-DacTable + $Tables | Should -Not -BeNullOrEmpty + $Tables.Count | Should -BeGreaterThan 5 } It 'Returns a table of a model by name' { - $table = $Script:Model | Get-DacTable -Name '[Application].[Cities]' - $table | Should -Not -BeNullOrEmpty + $Table = $Model | Get-DacTable -Name '[Application].[Cities]' + $Table | Should -Not -BeNullOrEmpty } } } diff --git a/test/Import-Model.Tests.ps1 b/test/Import-Model.Tests.ps1 index 3bfa77c..475b9e3 100644 --- a/test/Import-Model.Tests.ps1 +++ b/test/Import-Model.Tests.ps1 @@ -1,19 +1,19 @@ #Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' } -Describe 'Import-DacModel' { +param ( + [System.IO.FileInfo] $DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" +) - BeforeDiscovery { - [System.IO.FileInfo] $Global:DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" - } +Describe Import-Model { BeforeAll { Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop } - Context 'DacPac' -Skip:( -Not $Global:DacPacFile.Exists ) { + Context DacPac -Skip:( -Not $DacPacFile.Exists ) { It 'Imports the model from a DacPac' { - $model = Import-DacModel -Path $Global:DacPacFile - $model | Should -Not -BeNullOrEmpty + $Model = Import-DacModel -Path $DacPacFile + $Model | Should -Not -BeNullOrEmpty } } } diff --git a/test/Import-Package.Tests.ps1 b/test/Import-Package.Tests.ps1 index fbb4dda..4b84eb7 100644 --- a/test/Import-Package.Tests.ps1 +++ b/test/Import-Package.Tests.ps1 @@ -1,20 +1,20 @@ #Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.0.0' } -Describe 'Install-DacPackage' { +param ( + [System.IO.FileInfo] $DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" +) - BeforeDiscovery { - [System.IO.FileInfo] $Global:DacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" - } +Describe Install-Package { BeforeAll { Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop } - Context 'DacPac' -Skip:( -Not $Global:DacPacFile.Exists ) { + Context DacPac -Skip:( -Not $DacPacFile.Exists ) { It 'Imports the dacpac' { - $Script:DacPac = Import-DacPackage $Global:DacPacFile - $Script:DacPac | Should -Not -BeNullOrEmpty + $DacPac = Import-DacPackage $DacPacFile + $DacPac | Should -Not -BeNullOrEmpty } } diff --git a/test/Install-Package.Tests.ps1 b/test/Install-Package.Tests.ps1 index b00c42c..fde4112 100644 --- a/test/Install-Package.Tests.ps1 +++ b/test/Install-Package.Tests.ps1 @@ -5,7 +5,7 @@ param ( [System.IO.FileInfo] $WwiDacPacFile = "$PsScriptRoot\sql-server-samples\samples\databases\wide-world-importers\wwi-ssdt\wwi-ssdt\bin\Debug\WideWorldImporters.dacpac" ) -Describe 'Install-DacPackage' { +Describe Install-Package { BeforeDiscovery { if ( -Not $TestDbDacPacFile.Exists ) { @@ -21,7 +21,7 @@ Describe 'Install-DacPackage' { Import-Module $PSScriptRoot\..\publish\PsDac\PsDac.psd1 -ErrorAction Stop } - Context 'Server' { + Context Server { BeforeAll { $TestServer = New-SqlTestInstance @@ -32,10 +32,10 @@ Describe 'Install-DacPackage' { $TestServer | Remove-SqlTestInstance } - Context 'DacService' { + Context DacService { BeforeAll { - $DacService = Connect-DacService -ConnectionString $TestServer.ConnectionString -ErrorAction Stop + $DacService = $TestServer | Connect-DacService -ErrorAction Stop } AfterAll { @@ -44,7 +44,7 @@ Describe 'Install-DacPackage' { } } - Context 'Database' { + Context Database { BeforeEach { [string] $DatabaseName = ( [string](New-Guid) ).Substring(0, 8) From 29ade341f1ea106d0cfd36dd6b67b79659e2aeb3 Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Sat, 30 Jul 2022 21:25:55 +0200 Subject: [PATCH 12/14] remove version dependency --- tasks/Dependency.Tasks.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/Dependency.Tasks.ps1 b/tasks/Dependency.Tasks.ps1 index 7d6dabc..2b02c3d 100644 --- a/tasks/Dependency.Tasks.ps1 +++ b/tasks/Dependency.Tasks.ps1 @@ -6,7 +6,7 @@ task InstallTestDependencies -Jobs { Install-Module Pester -MinimumVersion '5.0.0' Install-Module PsSqlLocalDb -Scope CurrentUser -ErrorAction Stop -Verbose -AllowPrerelease Install-Module PsSqlTestServer -Scope CurrentUser -ErrorAction Stop -Verbose -AllowPrerelease - Install-Module PsSqlClient -Scope CurrentUser -ErrorAction Stop -Verbose -MaximumVersion 0.4.0 + Install-Module PsSqlClient -Scope CurrentUser -ErrorAction Stop -Verbose -AllowClobber Install-Module PsSmo -Scope CurrentUser -ErrorAction Stop -Verbose -AllowPrerelease Install-Module Invoke-MsBuild -ErrorAction Stop }, TestData.Create From ea9eac099154e4a0a31a8164f102259dfa43c367 Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Sat, 30 Jul 2022 21:32:46 +0200 Subject: [PATCH 13/14] change install order --- tasks/Dependency.Tasks.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/Dependency.Tasks.ps1 b/tasks/Dependency.Tasks.ps1 index 2b02c3d..af0cbaa 100644 --- a/tasks/Dependency.Tasks.ps1 +++ b/tasks/Dependency.Tasks.ps1 @@ -4,10 +4,10 @@ task InstallBuildDependencies -Jobs { task InstallTestDependencies -Jobs { Install-Module Pester -MinimumVersion '5.0.0' - Install-Module PsSqlLocalDb -Scope CurrentUser -ErrorAction Stop -Verbose -AllowPrerelease - Install-Module PsSqlTestServer -Scope CurrentUser -ErrorAction Stop -Verbose -AllowPrerelease Install-Module PsSqlClient -Scope CurrentUser -ErrorAction Stop -Verbose -AllowClobber Install-Module PsSmo -Scope CurrentUser -ErrorAction Stop -Verbose -AllowPrerelease + Install-Module PsSqlLocalDb -Scope CurrentUser -ErrorAction Stop -Verbose -AllowPrerelease + Install-Module PsSqlTestServer -Scope CurrentUser -ErrorAction Stop -Verbose -AllowPrerelease Install-Module Invoke-MsBuild -ErrorAction Stop }, TestData.Create From 1405e406b08d43f1f63d21f64f73809190fbbdfa Mon Sep 17 00:00:00 2001 From: Steffen Kampmann Date: Sat, 30 Jul 2022 21:45:53 +0200 Subject: [PATCH 14/14] changed version information --- CHANGELOG.md | 2 ++ src/PsDac/PsDac.psd1 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b71e37b..0018d77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.1.0] - 2022-07-30 + ### Added - Default parameter set ConnectionString for Connect-Service. diff --git a/src/PsDac/PsDac.psd1 b/src/PsDac/PsDac.psd1 index f459fe8..5b3f15d 100644 --- a/src/PsDac/PsDac.psd1 +++ b/src/PsDac/PsDac.psd1 @@ -12,7 +12,7 @@ RootModule = 'PsDac.dll' # Version number of this module. - ModuleVersion = '1.0.0' + ModuleVersion = '1.1.0' # Supported PSEditions # CompatiblePSEditions = @()