Documentation

Hale.PostgREST.PostgREST.Plan.ReadPlan

A non-negative pagination range. $$\text{NonnegRange} = \{ \text{offset} : \mathbb{N},\; \text{limit} : \mathbb{N}? \}$$ Both offset and limit are guaranteed non-negative by using Nat.

Instances For
    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        The total number of rows this range can produce (if limit is known).

        Equations
        Instances For

          Whether this range is unbounded (no limit).

          Equations
          Instances For

            The default range: offset 0, no limit.

            Equations
            Instances For

              A read plan represents a SELECT query with possible embedded sub-queries. $$\text{ReadPlan} = \{ \text{select} : [\text{SelectField}],\; \text{from} : \text{QI},\; \text{where} : [\text{Filter}],\; \text{order} : [\text{OrderTerm}],\; \text{range} : \text{NonnegRange},\; \text{embeds} : [(\text{Rel}, \text{ReadPlan})],\; \text{isInner} : \text{Bool} \}$$

              • rpSelect: columns and expressions to select
              • rpFrom: the source table or view
              • rpWhere: filter conditions
              • rpOrder: ordering specification
              • rpRange: pagination (offset/limit)
              • rpRelationships: embedded reads via lateral joins
              • rpIsInner: whether the embed uses INNER (true) or LEFT (false) join
              • rpAlias: optional alias for this read in the query
              Instances For

                Whether this read plan has any embedded sub-queries.

                Equations
                Instances For

                  The number of embedded sub-queries.

                  Equations
                  Instances For

                    Whether this read plan applies any filters.

                    Equations
                    Instances For

                      Whether this read plan specifies an ordering.

                      Equations
                      Instances For