sync_database

Function sync_database 

Source
pub fn sync_database<C: DatabaseConflictHandler, N: NameChangeset>(
    metadata: &FileMetadata,
    file: &RemoteFile,
    conflict_handler: C,
    name_changeset: N,
) -> Result<(), ()>
Expand description

Completely sync a database, pushing/pulling/merging/applying changes

  • metadata - File opened from 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