Liking cljdoc? Tell your friends :D

metabase.models.segment

A Segment is a saved MBQL 'macro', expanding to a :filter subclause. It is passed in as a :filter subclause but is replaced by the expand-macros middleware with the appropriate clauses.

A Segment is a saved MBQL 'macro', expanding to a `:filter` subclause. It is passed in as a `:filter` subclause but is
replaced by the `expand-macros` middleware with the appropriate clauses.
raw docstring

retrieve-segmentsclj

(retrieve-segments table-id)
(retrieve-segments table-id state)

Inputs: ([table-id :- su/IntGreaterThanZero] [table-id :- su/IntGreaterThanZero state :- (s/enum :active :deleted :all)]) Returns: [SegmentInstance]

Fetch all Segments for a given Table. Optional second argument allows filtering by active state by providing one of 3 keyword values: :active, :deleted, :all. Default filtering is for :active.

Inputs: ([table-id :- su/IntGreaterThanZero] [table-id :- su/IntGreaterThanZero state :- (s/enum :active :deleted :all)])
Returns: [SegmentInstance]

Fetch all `Segments` for a given `Table`. Optional second argument allows filtering by active state by providing
 one of 3 keyword values: `:active`, `:deleted`, `:all`. Default filtering is for `:active`.
sourceraw docstring

Segmentclj

(Segment)
(Segment id)
(Segment & kvs)

Entity for 'segment' table; instance of SegmentInstance.

Entity for 'segment' table; instance of SegmentInstance.
sourceraw docstring

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

× close