afFolioFileSyncExt icon

afFolioFileSyncExt

Version control Axon functions and Folio records, with GIT and SCM tools
afFolioFileSyncExtAxon funcs

Registered StackHub users may elect to receive email notifications whenever a new package version is released or a comment is posted on the forum.

There are 0 watchers.

v1.0.4

afFolioFileSync_deleteSub
afFolioFileSync_deleteSub(subName)

Deletes the named sync subscription.

Fantom signature:
@Axon { su=true; } static Void afFolioFileSync_deleteSub(Str subName)
afFolioFileSync_editSub
afFolioFileSync_editSub(subName, changes)

Updates a sync subscription. Changes may contain:

  • filter (Str) - selects the records to be synced
  • dir (Uri) - a sub directory to save .trio files under
  • fileNameMacro (Str) - a macro used to generate .trio file names
Fantom signature:
@Axon { su=true; } static Dict afFolioFileSync_editSub(Str subName, Dict changes)
afFolioFileSync_factoryReset
afFolioFileSync_factoryReset()

Resets all Folio File Sync settings back to their factory defaults.

Fantom signature:
@Axon { su=true; } static Void afFolioFileSync_factoryReset()
afFolioFileSync_newSub
afFolioFileSync_newSub(sub)

Creates a new sync subscription. The sub Dict must contain:

  • name (Str) - a valid tagName
  • filter (Str) - selects the records to be synced
  • dir (Uri) - a sub directory to save .trio files under
  • fileNameMacro (Str) - a macro used to generate .trio file names
Fantom signature:
@Axon { su=true; } static Dict afFolioFileSync_newSub(Dict sub)
afFolioFileSync_subs
afFolioFileSync_subs()

Returns all sync subscriptions.

Fantom signature:
@Axon { su=true; } static Grid afFolioFileSync_subs()
afFolioFileSync_syncToFiles
afFolioFileSync_syncToFiles(subName: null)

Synchronises Folio records to .trio files on the file system.

If given, just the named subscription is synced, else ALL subscriptions are sync'ed.

Returns details the sync.

Fantom signature:
@Axon { su=true; } static Grid afFolioFileSync_syncToFiles(Str? subName := null)
afFolioFileSync_syncToFolio
afFolioFileSync_syncToFolio(subNames: null, force: false)

Synchronises .trio files on the file system back into Folio.

The named subscriptions are used to ascertain which directories to look for .trio files. If not given, then all subscriptions are assumed.

If force is true then ALL records are updated into Folio, even if the records in Folio are newer than the .trio files.

Returns details the sync.

Fantom signature:
@Axon { su=true; } static Grid afFolioFileSync_syncToFolio(Str[]? subNames := null, Bool force := false)
Published by Fantom Factory

Products & Services by Fantom Factory

Packages by Fantom Factory

Commercial packages

Free packages