# 22. Virtuoso Functions Guide - REPL_ADD_DAV_CR

Chapter Contents | Prev | Next
Keyword Search:
www.openlinksw.com
docs.openlinksw.com
Book Home
Contents
Preface
Virtuoso Functions Guide
Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Remote SQL Data Source
Replication
repl_add_cr
repl_add_dav_cr
repl_add_snapshot_cr
repl_create_snapshot...
repl_create_snapshot...
repl_drop_snapshot_p...
repl_drop_snapshot_s...
repl_grant
repl_init_copy
repl_init_snapshot
repl_publish
repl_pub_add
repl_pub_init_image
repl_pub_remove
repl_revoke
repl_sched_init
repl_server
repl_server_name
repl_snp_server
repl_stat
repl_subscribe
repl_unpublish
repl_unsubscribe
repl_update_snapshot
repl_disconnect
repl_new_log
repl_purge
repl_server_rename
repl_status
repl_sync
repl_sync_all
repl_text
repl_this_server
sub_schedule
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY
Functions Index

## REPL_ADD_DAV_CR

Creates conflict resolver for bi-directional replication in DAV
None REPL_ADD_DAV_CR (in col varchar, in name_suffix varchar, in order integer, in class varchar);
Description

Simple conflict resolvers for DAV bi-directional replication can be generated by calling this function.

Parameters
col – Collection for which to generate a conflict resolver for.
name_suffix – Conflict resolver name suffix.
order – Resolver order number.
class – class can be one of the following:

- 'max_mtime'

  resource with maximum mtime wins (most recent resource)

- 'min_mtime'

  resource with minimum mtime wins

- 'max_ctime'

  resource with maximum ctime wins

- 'min_ctime'

  resource with minimum ctime wins

- 'backup'

  backup of resource that lost conflict resolution will be performed, conflict resolution will continue

- 'notify'

  owner of resource will be notified if his resource lost conflict resolution

- 'pub_wins', 'custom'

  publisher always wins

- 'sub_wins'

  subscriber always wins

Return Types

None.

Examples
Conflict Resolver

A conflict resolver that chooses a resource with minimal creation time can be defined with the following statement:

    REPL_ADD_DAV_CR('/DAV/regress', 'min_ctime', 100, 'min_ctime');

See Also

REPL_ADD_SNAPSHOT_CR()