Liking cljdoc? Tell your friends :D

metabase.models.field-values


auto-list-cardinality-thresholdclj

Fields with less than this many distincy values should be given a has_field_values value of list, which means the Field should have FieldValues.

Fields with less than this many distincy values should be given a `has_field_values` value of `list`, which means
the Field should have FieldValues.
sourceraw docstring

category-cardinality-thresholdclj

Fields with less than this many distinct values should automatically be given a special type of :type/Category. This no longer has any meaning whatsoever as far as the backend code is concerned; it is used purely to inform frontend behavior such as widget choices.

Fields with less than this many distinct values should automatically be given a special type of `:type/Category`.
This no longer has any meaning whatsoever as far as the backend code is concerned; it is used purely to inform
frontend behavior such as widget choices.
sourceraw docstring

clear-field-values!clj

(clear-field-values! field-or-id)

Remove the FieldValues for FIELD-OR-ID.

Remove the `FieldValues` for FIELD-OR-ID.
sourceraw docstring

create-field-values-if-needed!clj

(create-field-values-if-needed! field)
(create-field-values-if-needed! field human-readable-values)

Create FieldValues for a Field if they should exist but don't already exist. Returns the existing or newly created FieldValues for Field.

Create `FieldValues` for a `Field` if they *should* exist but don't already exist.
Returns the existing or newly created `FieldValues` for `Field`.
sourceraw docstring

create-or-update-field-values!clj

(create-or-update-field-values! field & [human-readable-values])

Create or update the FieldValues object for 'field`. If the FieldValues object already exists, then update values for it; otherwise create a new FieldValues object with the newly fetched values. Returns whether the field values were created/updated/deleted as a result of this call.

Create or update the FieldValues object for 'field`. If the FieldValues object already exists, then update values for
it; otherwise create a new FieldValues object with the newly fetched values. Returns whether the field values were
created/updated/deleted as a result of this call.
sourceraw docstring

field-should-have-field-values?clj

(field-should-have-field-values? {base-type :base_type
                                  visibility-type :visibility_type
                                  has-field-values :has_field_values
                                  :as field})

Inputs: [{base-type :base_type, visibility-type :visibility_type, has-field-values :has_field_values, :as field} :- {:visibility_type su/KeywordOrString, :base_type (s/maybe su/KeywordOrString), :has_field_values (s/maybe su/KeywordOrString), s/Keyword s/Any}] Returns: s/Bool

Should this field be backed by a corresponding FieldValues object?

Inputs: [{base-type :base_type, visibility-type :visibility_type, has-field-values :has_field_values, :as field} :- {:visibility_type su/KeywordOrString, :base_type (s/maybe su/KeywordOrString), :has_field_values (s/maybe su/KeywordOrString), s/Keyword s/Any}]
Returns: s/Bool

Should this `field` be backed by a corresponding `FieldValues` object?
sourceraw docstring

field-values->pairsclj

(field-values->pairs {:keys [values human_readable_values] :as field-values})

Returns a list of pairs (or single element vectors if there are no human_readable_values) for the given FIELD-VALUES instance.

Returns a list of pairs (or single element vectors if there are no human_readable_values) for the given
`FIELD-VALUES` instance.
sourceraw docstring

FieldValuesclj

(FieldValues)
(FieldValues id)
(FieldValues & kvs)

Entity for 'metabase_fieldvalues' table; instance of FieldValuesInstance.

Entity for 'metabase_fieldvalues' table; instance of FieldValuesInstance.
sourceraw docstring

save-field-values!clj

(save-field-values! field-id values)

Save the FieldValues for FIELD-ID, creating them if needed, otherwise updating them.

Save the `FieldValues` for FIELD-ID, creating them if needed, otherwise updating them.
sourceraw docstring

update-field-values-for-on-demand-dbs!clj

(update-field-values-for-on-demand-dbs! field-ids)

Update the FieldValues for any Fields with FIELD-IDS if the Field should have FieldValues and it belongs to a Database that is set to do 'On-Demand' syncing.

Update the FieldValues for any Fields with FIELD-IDS if the Field should have FieldValues and it belongs to a
Database that is set to do 'On-Demand' syncing.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close