Skip to content

Support for shutdown/startup in DatabaseManager#56

Merged
asfernandes merged 5 commits into
asfernandes:mainfrom
mariuz:main
Jul 8, 2026
Merged

Support for shutdown/startup in DatabaseManager#56
asfernandes merged 5 commits into
asfernandes:mainfrom
mariuz:main

Conversation

@mariuz

@mariuz mariuz commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Adds  DatabasePropertyManager , a new  ServiceManager  subclass (following the same pattern as  BackupManager ) that wraps the two Firebird service-manager property operations that are currently missing from fb-cpp:

•  shutdown(ShutdownOptions)  — shuts down a database with configurable mode ( FORCED ,  DENY_TRANSACTIONS ,  DENY_ATTACHMENTS ) and timeout
•  startup(database)  — brings a database back online ( isc_spb_prp_db_online )

Also adds a  ShutdownMode  enum and  ShutdownOptions  options class following the existing conventions.

@asfernandes

Copy link
Copy Markdown
Owner

This feature should go to DatabaseManager::setProperties which is where others isc_spb_prp_* are.

@mariuz

mariuz commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@asfernandes The database shutdown and startup features have been integrated directly
into DatabaseManager.cpp and DatabaseManager.h rather than using a separate manager.

Comment thread src/fb-cpp/DatabaseManager.cpp Outdated
Comment thread src/fb-cpp/DatabaseManager.cpp Outdated
@asfernandes asfernandes changed the title add DatabasePropertyManager  for database shutdown/startup Support for shutdown/startup in DatabaseManager Jul 8, 2026
@asfernandes asfernandes merged commit e6afa57 into asfernandes:main Jul 8, 2026
4 checks passed
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