Options
All
  • Public
  • Public/Protected
  • All
Menu

@supabase/postgrest-js

Index

Type Aliases

PostgrestMaybeSingleResponse<T>: PostgrestSingleResponse<T | null>

Type Parameters

  • T

PostgrestResponse<T>: PostgrestSingleResponse<T[]>

Type Parameters

  • T

PostgrestSingleResponse<T>: PostgrestResponseSuccess<T> | PostgrestResponseFailure

Type Parameters

  • T

UnstableGetResult<Schema, Row, RelationName, Relationships, Query>: IsAny<Schema> extends true ? ParseQuery<Query> extends infer ParsedQuery ? ParsedQuery extends Ast.Node[] ? RelationName extends string ? ProcessNodesWithoutSchema<ParsedQuery> : any : ParsedQuery : any : Relationships extends null ? ParseQuery<Query> extends infer ParsedQuery ? ParsedQuery extends Ast.Node[] ? RPCCallNodes<ParsedQuery, RelationName extends string ? RelationName : "rpc_call", Row> : ParsedQuery : Row : ParseQuery<Query> extends infer ParsedQuery ? ParsedQuery extends Ast.Node[] ? RelationName extends string ? Relationships extends GenericRelationship[] ? ProcessNodes<Schema, Row, RelationName, Relationships, ParsedQuery> : SelectQueryError<"Invalid Relationships cannot infer result type"> : SelectQueryError<"Invalid RelationName cannot infer result type"> : ParsedQuery : never

Main entry point for constructing the result type of a PostgREST query.

Type Parameters

  • Schema extends GenericSchema

    Database schema.

  • Row extends Record<string, unknown>

    The type of a row in the current table.

  • RelationName

    The name of the current table or view.

  • Relationships

    Relationships of the current table.

  • Query extends string

    The select query string literal to parse.

Variables

default: { PostgrestBuilder: typeof PostgrestBuilder; PostgrestClient: typeof PostgrestClient; PostgrestError: typeof PostgrestError; PostgrestFilterBuilder: typeof PostgrestFilterBuilder; PostgrestQueryBuilder: typeof PostgrestQueryBuilder; PostgrestTransformBuilder: typeof PostgrestTransformBuilder }

Type declaration

Generated using TypeDoc