SqlProjectResource
Handle
interface SqlProjectResource extends IResource, IResourceWithDacpac, IResourceWithWaitSupport { readonly dacDeployOptionsPath: string; readonly dacpacPath: string; readonly skipWhenDeployed: boolean; withConnectionReference(target: IResourceWithConnectionString): SqlProjectResource; withDacDeployOptions(optionsPath: string): SqlProjectResource; withDacpac(dacpacPath: string): SqlProjectResource; withReference(target: SqlServerDatabaseResource): SqlProjectResource; withSkipWhenDeployed(): SqlProjectResource;}8 members
Properties
property
dacDeployOptionsPathstringgetGets the configured path to the deployment options publish profile.
property
dacpacPathstringgetGets the configured path to the .dacpac file.
property
skipWhenDeployedbooleangetGets a value indicating whether deployment should be skipped when the dacpac has already been deployed.
Methods
Publishes the SQL Server database project to a connection string resource.
withConnectionReference(target: IResourceWithConnectionString): SqlProjectResourceParameters
targetIResourceWithConnectionStringReturns
SqlProjectResourceSets the publish profile path used for DAC deployment options.
withDacDeployOptions(optionsPath: string): SqlProjectResourceParameters
optionsPathstringReturns
SqlProjectResourceSpecifies the path to the .dacpac file.
withDacpac(dacpacPath: string): SqlProjectResourceParameters
dacpacPathstringReturns
SqlProjectResourcePublishes the SQL Server database project to a SQL Server database resource.
withReference(target: SqlServerDatabaseResource): SqlProjectResourceParameters
targetSqlServerDatabaseResourceReturns
SqlProjectResourceSpecifies that .dacpac deployment should be skipped if metadata in the target database indicates that the .dacpac has already been deployed in its current state.
withSkipWhenDeployed(): SqlProjectResourceReturns
SqlProjectResource