Liking cljdoc? Tell your friends :D

metabase.models.card

Underlying DB model for what is now most commonly referred to as a 'Question' in most user-facing situations. Card is a historical name, but is the same thing; both terms are used interchangeably in the backend codebase.

Underlying DB model for what is now most commonly referred to as a 'Question' in most user-facing situations. Card
is a historical name, but is the same thing; both terms are used interchangeably in the backend codebase.
raw docstring

Cardclj

(Card)
(Card id)
(Card & kvs)

Entity for 'report_card' table; instance of CardInstance.

Entity for 'report_card' table; instance of CardInstance.
sourceraw docstring

card-dependenciesclj

(card-dependencies {{query-type :type inner-query :query} :dataset_query})
(card-dependencies _ _ card)

Calculate any dependent objects for a given card.

Calculate any dependent objects for a given `card`.
sourceraw docstring

dashboard-countclj

(dashboard-count {:keys [id]})

Return the number of Dashboards this Card is in.

Return the number of Dashboards this Card is in.
sourceraw docstring

populate-query-fieldsclj

(populate-query-fields {{query-type :type :as outer-query} :dataset_query
                        :as card})

Lift database_id, table_id, and query_type from query definition.

Lift `database_id`, `table_id`, and `query_type` from query definition.
sourceraw docstring

serialize-instanceclj

(serialize-instance instance)
(serialize-instance _ _ instance)

Serialize a Card for use in a Revision.

Serialize a `Card` for use in a `Revision`.
sourceraw docstring

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

× close