Logic for syncing the instances of Field
in the Metabase application DB with the set of Fields in the DB metadata.
Responsible for creating new instances of Field
as needed, and marking existing ones as active or inactive as
needed. Recursively handles nested Fields.
All nested Fields recursion is handled in one place, by the main entrypoint (sync-instances!
) and helper
functions sync-nested-field-instances!
and sync-nested-fields-of-one-field!
. All other functions in this
namespace should ignore nested fields entirely; the will be invoked with those Fields as appropriate.
Logic for syncing the instances of `Field` in the Metabase application DB with the set of Fields in the DB metadata. Responsible for creating new instances of `Field` as needed, and marking existing ones as active or inactive as needed. Recursively handles nested Fields. All nested Fields recursion is handled in one place, by the main entrypoint (`sync-instances!`) and helper functions `sync-nested-field-instances!` and `sync-nested-fields-of-one-field!`. All other functions in this namespace should ignore nested fields entirely; the will be invoked with those Fields as appropriate.
(sync-instances! table db-metadata our-metadata)
(sync-instances! table db-metadata our-metadata parent-id)
Inputs: ([table :- i/TableInstance db-metadata :- #{i/TableMetadataField} our-metadata :- #{common/TableMetadataFieldWithID}] [table :- i/TableInstance db-metadata :- #{i/TableMetadataField} our-metadata :- #{common/TableMetadataFieldWithID} parent-id :- common/ParentID]) Returns: su/IntGreaterThanOrEqualToZero
Sync rows in the Field table with db-metadata
describing the current schema of the Table currently being synced,
creating Field objects or marking them active/inactive as needed.
Inputs: ([table :- i/TableInstance db-metadata :- #{i/TableMetadataField} our-metadata :- #{common/TableMetadataFieldWithID}] [table :- i/TableInstance db-metadata :- #{i/TableMetadataField} our-metadata :- #{common/TableMetadataFieldWithID} parent-id :- common/ParentID]) Returns: su/IntGreaterThanOrEqualToZero Sync rows in the Field table with `db-metadata` describing the current schema of the Table currently being synced, creating Field objects or marking them active/inactive as needed.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close