Liking cljdoc? Tell your friends :D

metabase.db.metadata-queries

Predefined MBQL queries for getting metadata about an external database.

Predefined MBQL queries for getting metadata about an external database.
raw docstring

db-idclj

(db-id x)

Return the database ID of a given entity.

Return the database ID of a given entity.
sourceraw docstring

field-countclj

(field-count field)

Return the count of field.

Return the count of `field`.
sourceraw docstring

field-distinct-countclj

(field-distinct-count field & [limit])

Return the distinct count of field.

Return the distinct count of `field`.
sourceraw docstring

field-distinct-valuesclj

(field-distinct-values field)
(field-distinct-values field max-results)

Inputs: ([field] [field max-results :- su/IntGreaterThanZero])

Return the distinct values of field. This is used to create a FieldValues object for :type/Category Fields.

Inputs: ([field] [field max-results :- su/IntGreaterThanZero])

Return the distinct values of `field`.
 This is used to create a `FieldValues` object for `:type/Category` Fields.
sourceraw docstring

max-sample-rowsclj

The maximum number of values we should return when using table-rows-sample. This many is probably fine for inferring special types and what-not; we don't want to scan millions of values at any rate.

The maximum number of values we should return when using `table-rows-sample`. This many is probably fine for
inferring special types and what-not; we don't want to scan millions of values at any rate.
sourceraw docstring

table-row-countclj

(table-row-count table)

Fetch the row count of TABLE via the query processor.

Fetch the row count of TABLE via the query processor.
sourceraw docstring

table-rows-sampleclj

(table-rows-sample table fields)

Inputs: [table :- si/TableInstance fields :- [si/FieldInstance]] Returns: (s/maybe si/TableSample)

Run a basic MBQL query to fetch a sample of rows belonging to a Table.

Inputs: [table :- si/TableInstance fields :- [si/FieldInstance]]
Returns: (s/maybe si/TableSample)

Run a basic MBQL query to fetch a sample of rows belonging to a Table.
sourceraw docstring

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

× close