ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Replication (Property)
In french: Replication
HFSQL ClassicAvailable only with this kind of connection
The Replication property is used to:
  • determine the replication mode used for a data file (defined in the data model editor or programmatically)
  • specify the replication mode used for a data file (file described programmatically only).
This property can only be used in a log-based replication.
Example
// Checks whether the data file is configured for replication (log-based replication)
IF Customer.Replication = hNotReplicated THEN Info("Unable to replicate")
Syntax

Getting the replication mode Hide the details

<Current mode> = <Data file>.Replication
<Current mode>: Integer constant
Replication modes:
hMasterReplicaThe data file is a master replica (HCreateMasterReplica was used to create the master replica)
hNotReplicatedThe data file is not configured for a log-based replication. To implement log-based replication, check "Log-based replication" in the data file options ("Logging" tab of the data file description window).
hReplicatedThe data file is configured to be replicated.
hSubscriberReplicaThe data file is a subscriber replica (HCreateSubscriberReplica was used to create the subscriber replica)
<Data file>: Character string
Name of the file used. This name is defined in the data model editor or with the File Description type.

Defining the replication mode Hide the details

<Data file>.Replication = <Replication mode>
<Data file>: Character string
Name of the file used. This name is defined with the File Description type.
<Replication mode>: Integer constant
Replication modes:
hNotReplicatedThe data file is not configured for a log-based replication.
hReplicatedThe data file is configured to be replicated.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/16/2024

Send a report | Local help