Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

Implements

Index

Constructors

constructor

  • new PostgrestRpcBuilder(url: string, __namedParameters?: { fetch: undefined | fetch; headers: {}; schema: undefined | string; shouldThrowOnError: undefined | false | true }): PostgrestRpcBuilder

Properties

Protected allowEmpty

allowEmpty: boolean

Protected Optional body

body: Partial<T> | Partial<T>[]

Protected fetch

fetch: Fetch

Protected headers

headers: {}

Type declaration

  • [key: string]: string

Protected method

method: "GET" | "HEAD" | "POST" | "PATCH" | "DELETE"

Protected Optional schema

schema: undefined | string

Protected shouldThrowOnError

shouldThrowOnError: boolean

Protected Optional signal

signal: AbortSignal

Protected url

url: URL

Methods

rpc

  • rpc(params?: undefined | object, __namedParameters?: { count: null | "exact" | "planned" | "estimated"; head: boolean }): PostgrestFilterBuilder<T>
  • Perform a function call.

    Parameters

    • Optional params: undefined | object
    • Default value __namedParameters: { count: null | "exact" | "planned" | "estimated"; head: boolean } = {}
      • count: null | "exact" | "planned" | "estimated"
      • head: boolean

    Returns PostgrestFilterBuilder<T>

then

  • then<TResult1, TResult2>(onfulfilled?: ((value: PostgrestResponse<T>) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>
  • Type parameters

    • TResult1 = PostgrestResponse<T>

    • TResult2 = never

    Parameters

    • Optional onfulfilled: ((value: PostgrestResponse<T>) => TResult1 | PromiseLike<TResult1>) | undefined | null
    • Optional onrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null

    Returns PromiseLike<TResult1 | TResult2>

throwOnError

  • throwOnError(throwOnError?: undefined | false | true): this

Generated using TypeDoc