Module serendb

Module serendb 

Source

Structs§

Branch
Branch information from SerenDB Console API
ConsoleClient
SerenDB Console API client
Database
Database information from SerenDB Console API
Project
Project information from SerenDB Console API
TargetSelection
Result of the interactive project/database selection
TargetState
Persisted target selection state

Enums§

TargetMode
How the target database is specified

Functions§

clear_target_state
Delete persisted target state (if present)
create_missing_databases
Ensure target branch contains all databases required for replication.
load_target_state
Load target state from disk. Returns Ok(None) if the file does not exist.
resolve_target_mode
Resolve which target mode to use based on CLI args and environment
save_target_state
Save target state to disk
select_target
Run interactive SerenDB target selection. Returns the selected project, branch, and database names to mirror the source.