Skip to content

SQL Projects: add ability to skip deployment if current package has already been deployed #860

@ErikEJ

Description

@ErikEJ

Related to an existing integration?

Yes

Existing integration

CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects

Overview

Deployment can sometimes take some time during launch, and if the SQL database is on a persisted volume, may not be needed.

This feature is about adding an option to add a check if the current .dacpac has already been deployed, and in this case, skip deployment and exit.

Usage example

New "WithXxx" method, or an additional parameter on AddSqlProject/AddSqlPackage

"WithSkipOnDeployed" ?? (needs design 😄 )

Breaking change?

No

Alternatives

Use WithExplicitStart, but this requires manual intervention and knowledge about current state

Additional context

@jmezach @JerryNixon Thoughts and ideas about actual implementation (and naming!)

Thinking about getting a checksum from the file path + file size + last modified time stamp, then store this in a table or as extended properties in the user database with filename and checksum columns in the target database

Help us help you

Yes, I'd like to be assigned to work on this item

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions