CollectionsImport is a form model to bulk import (create, replace and delete) collections from a user provided list.

Hierarchy

Implemented by

Methods

  • SetDao replaces the default form Dao instance with the provided one.

    Parameters

    Returns void

  • Submit applies the import, aka.:

    • imports the form collections (create or replace)
    • sync the collection changes with their related records table
    • ensures the integrity of the imported structure (aka. run validations for each collection)
    • if [form.DeleteMissing] is set, deletes all local collections that are not found in the imports list

    All operations are wrapped in a single transaction that are rollbacked on the first encountered error.

    You can optionally provide a list of InterceptorFunc to further modify the form behavior before persisting it.

    Parameters

    Returns void

  • Validate makes the form validatable by implementing [validation.Validatable] interface.

    Returns void

Properties

collections: models.Collection[]
deleteMissing: boolean

Generated using TypeDoc