Completely sync a database, pushing/pulling/merging/applying changes `database` - Database to sync `file` - File to sync with `conflict_handler` - Function to call to resolve snapshot conflicts `name_changeset` - Function to call for naming a pushed changeset, if necessary
(
database: &Database,
file: &RemoteFile,
conflict_handler: C,
name_changeset: N,
)
| 259 | /// * `conflict_handler` - Function to call to resolve snapshot conflicts |
| 260 | /// * `name_changeset` - Function to call for naming a pushed changeset, if necessary |
| 261 | pub fn sync_database<C: DatabaseConflictHandler, N: NameChangeset>( |
| 262 | database: &Database, |
| 263 | file: &RemoteFile, |
| 264 | conflict_handler: C, |
| 265 | name_changeset: N, |
| 266 | ) -> Result<(), ()> { |
| 267 | sync_database_with_progress( |
| 268 | database, |
| 269 | file, |
| 270 | conflict_handler, |
| 271 | name_changeset, |
| 272 | NoProgressCallback, |
| 273 | ) |
| 274 | } |
| 275 | |
| 276 | /// Completely sync a database, pushing/pulling/merging/applying changes |
| 277 | /// |
no test coverage detected