Temporarily disables (or re-enables) the replication. Replication can be a log-based replication or a universal replication.
The replication between HFSQL data files is automatically managed.
When the replication is "disabled", you have the ability to access the HFSQL Classic data files without storing the information required by the replication. Then, the replication management must be restored.
Caution: The use of this function is reserved to experienced programmers. We do not advise you to temporarily disable the management of replication and perform modifications on the data files. Indeed, problems may occur during the synchronization.
Remark: The replication is not available when accessing a database via
Remote access.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 19 and later
New in version 19
Versions 21 and later
New in version 21
// Enables the universal replication
HSetReplication(rplReplicationUniversal)
Syntax
Managing log-based replication (between HFSQL databases) or universal replication Hide the details
<Result> = HSetReplication(<Management mode>)
<Result>: Integer constant
Former management mode of replication (before the modification): | |
rplReplicationDisabled | The replication was not managed before the call to HSetReplication. |
rplReplicationUniversal | The replication performed before the call to HSetReplication was a universal replication (between HFSQL data files and data files handled by a Native Access for example). Remark: the rplReplicationHeterogeneous constant can be used for backward compatibility with the earlier versions. |
rplReplicationLogged | Log-based replication between HFSQL data files was managed before the call to HSetReplication. |
<Management mode>: Integer constant
New management mode to use: | |
rplReplicationDisabled | Used to temporarily disable the management of replication. |
rplReplicationUniversal | Used to perform a universal replication (between a HFSQL database and an Oracle database for example). Remark: the rplReplicationHeterogeneous constant can be used for backward compatibility with the earlier versions. |
rplReplicationLogged | Allows you to perform a log-based replication between HFSQL data files (uses the HFSQL data files with logs). |
Remarks
The log process is disabled when the replication is disabled. The log process can be re-enabled by
HSetLog.
Business / UI classification : Business Logic