Liking cljdoc? Tell your friends :D

supabase.postgrest.transform

Result-shape transforms: order, limit, range, single, csv, geojson, explain, rollback, returning.

Result-shape transforms: order, limit, range, single, csv, geojson,
explain, rollback, returning.
raw docstring

accept-headersclj

source

csvclj

(csv req)

Return data as a CSV string.

Return data as a CSV string.
sourceraw docstring

explainclj

(explain req)
(explain req opts)

Return the EXPLAIN plan for the query. Requires db_plan_enabled on the Supabase project.

Return the EXPLAIN plan for the query. Requires `db_plan_enabled`
on the Supabase project.
sourceraw docstring

geojsonclj

(geojson req)

Return data as a GeoJSON object.

Return data as a GeoJSON object.
sourceraw docstring

limitclj

(limit req n)
(limit req n opts)

Limit results to n. Optionally scope to a foreign table.

Limit results to `n`. Optionally scope to a foreign table.
sourceraw docstring

maybe-singleclj

(maybe-single req)

Like single but tolerates 0-row results. GET requests use json; other methods use pgrst-object.

Like `single` but tolerates 0-row results. GET requests use json; other
methods use pgrst-object.
sourceraw docstring

orderclj

(order req column)
(order req column opts)

Order results by column. Multiple calls stack.

Opts: :asc — boolean (default false → desc, matching elixir port) :null-first — boolean (default false → nullslast) :foreign-table — scope order to a related table

Order results by `column`. Multiple calls stack.

Opts:
  :asc          — boolean (default false → desc, matching elixir port)
  :null-first   — boolean (default false → nullslast)
  :foreign-table — scope order to a related table
sourceraw docstring

rangeclj

(range req from to)
(range req from to opts)

0-based inclusive range. (range req 1 3) returns rows 2, 3, 4.

0-based inclusive range. `(range req 1 3)` returns rows 2, 3, 4.
sourceraw docstring

returningclj

(returning req)
(returning req columns)

Selects which columns are returned for INSERT/UPDATE/UPSERT/DELETE.

columns is [] (all columns), a vector of names, or "*".

Selects which columns are returned for INSERT/UPDATE/UPSERT/DELETE.

`columns` is `[]` (all columns), a vector of names, or `"*"`.
sourceraw docstring

rollbackclj

(rollback req)

Run the query without committing. Data still returned.

Run the query without committing. Data still returned.
sourceraw docstring

set-acceptclj

(set-accept req media-type)

Replaces the request's accept header with the value mapped to media-type (a keyword from accept-headers).

Replaces the request's `accept` header with the value mapped to
`media-type` (a keyword from `accept-headers`).
sourceraw docstring

singleclj

(single req)

Return data as a single object instead of an array. Errors if rows != 1.

Return data as a single object instead of an array. Errors if rows != 1.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close