Class AbstractProjectUpdater
java.lang.Object
org.pgcodekeeper.core.database.base.project.AbstractProjectUpdater
- All Implemented Interfaces:
IProjectUpdater
- Direct Known Subclasses:
ChProjectUpdater,MsProjectUpdater,PgProjectUpdater
Abstract base class for database project updaters that provides common update functionality
for different database types (PostgreSQL, MS SQL, ClickHouse).
Handles partial and full updates of database projects with safe backup and restore functionality. Supports overrides-only updates and manages temporary directories for safe atomic operations.
Subclasses must implement database-specific methods for directory structure and model exporters.
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdateFull(boolean projectOnly) Performs full update of database project.voidPerforms partial update of database project.
-
Method Details
-
updatePartial
Description copied from interface:IProjectUpdaterPerforms partial update of database project. Updates only changed objects with safe backup and restore on failure.- Specified by:
updatePartialin interfaceIProjectUpdater- Throws:
IOException- if update operation fails
-
updateFull
Description copied from interface:IProjectUpdaterPerforms full update of database project. Completely regenerates project structure with optional overrides preservation.- Specified by:
updateFullin interfaceIProjectUpdater- Parameters:
projectOnly- whether to preserve overrides directory during update- Throws:
IOException- if update operation fails
-