MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / sync_database

Function sync_database

rust/src/collaboration/sync.rs:261–274  ·  view source on GitHub ↗

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,
)

Source from the content-addressed store, hash-verified

259/// * `conflict_handler` - Function to call to resolve snapshot conflicts
260/// * `name_changeset` - Function to call for naming a pushed changeset, if necessary
261pub 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///

Callers 1

syncMethod · 0.70

Calls 1

Tested by

no test coverage detected