Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onDelete MetadataInterceptor #582

Merged
merged 4 commits into from
Apr 15, 2024
Merged

Conversation

amboz
Copy link
Contributor

@amboz amboz commented Mar 26, 2024

This PR adds a method onDelete to the MetadataInterceptor. Implementations of MetadataInterceptor can add specific business logic and/or validation to onDelete before deleting metadata.

Implementations of UserMetadataService that register a MetadataInterceptor can choose to apply onDelete as needed to execute pre-delete business logic.

Here,onDelete is called for all QualifiedNames passed to MysqlUserMetadataService._deleteDefinitionMetadata.

@amboz amboz merged commit ae08316 into master Apr 15, 2024
3 checks passed
@amboz amboz deleted the abozigian/metadata-interceptor-ondelete branch April 15, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants