Skip to main content
Module

x/supabase/mod.ts>PostgrestQueryBuilder

An isomorphic Javascript client for Supabase.
Go to Latest
class PostgrestQueryBuilder
Re-export
import { PostgrestQueryBuilder } from "https://deno.land/x/supabase@1.3.1/mod.ts";

Constructors

new
PostgrestQueryBuilder(url: string, unnamed 1?: { headers?: { [key: string]: string; }; schema?: string; })

Methods

delete(unnamed 0?: { returning?: "minimal" | "representation"; count?:
| null
| "exact"
| "planned"
| "estimated"
; }
): PostgrestFilterBuilder<T>

Performs a DELETE on the table.

insert(values: Partial<T> | Partial<T>[], options?: { returning?: "minimal" | "representation"; count?:
| null
| "exact"
| "planned"
| "estimated"
; }
): PostgrestFilterBuilder<T>

Performs an INSERT into the table.

deprecated
insert(values: Partial<T> | Partial<T>[], options?: { upsert?: boolean; onConflict?: string; returning?: "minimal" | "representation"; count?:
| null
| "exact"
| "planned"
| "estimated"
; }
): PostgrestFilterBuilder<T>
select(columns?, unnamed 1?: { head?: boolean; count?:
| null
| "exact"
| "planned"
| "estimated"
; }
): PostgrestFilterBuilder<T>

Performs vertical filtering with SELECT.

update(values: Partial<T>, unnamed 1?: { returning?: "minimal" | "representation"; count?:
| null
| "exact"
| "planned"
| "estimated"
; }
): PostgrestFilterBuilder<T>

Performs an UPDATE on the table.

upsert(values: Partial<T> | Partial<T>[], unnamed 1?: { onConflict?: string; returning?: "minimal" | "representation"; count?:
| null
| "exact"
| "planned"
| "estimated"
; ignoreDuplicates?: boolean; }
): PostgrestFilterBuilder<T>

Performs an UPSERT into the table.