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.
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.
(clear-field-values! field-or-id)
Remove the FieldValues
for FIELD-OR-ID.
Remove the `FieldValues` for FIELD-OR-ID.
(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`.
(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.
(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?
(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.
(FieldValues)
(FieldValues id)
(FieldValues & kvs)
Entity for 'metabase_fieldvalues' table; instance of FieldValuesInstance.
Entity for 'metabase_fieldvalues' table; instance of FieldValuesInstance.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close