Predefined MBQL queries for getting metadata about an external database.
Predefined MBQL queries for getting metadata about an external database.
(db-id x)
Return the database ID of a given entity.
Return the database ID of a given entity.
(field-count field)
Return the count of field
.
Return the count of `field`.
(field-distinct-count field & [limit])
Return the distinct count of field
.
Return the distinct count of `field`.
(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.
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.
(table-row-count table)
Fetch the row count of TABLE via the query processor.
Fetch the row count of TABLE via the query processor.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close