Table of Contents

Class QueryOptions

Namespace
Supabase.Postgrest
Assembly
Supabase.Postgrest.dll
public class QueryOptions
Inheritance
QueryOptions
Inherited Members
Extension Methods

Properties

Count

Count algorithm to use to count rows in a table.

public QueryOptions.CountType Count { get; set; }

Property Value

QueryOptions.CountType

DuplicateResolution

Specifies if duplicate rows should be ignored and not inserted.

public QueryOptions.DuplicateResolutionType DuplicateResolution { get; set; }

Property Value

QueryOptions.DuplicateResolutionType

OnConflict

/// By specifying the onConflict query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint.

public string? OnConflict { get; set; }

Property Value

string

Returning

By default the new record is returned. Set this to 'Minimal' if you don't need this value.

public QueryOptions.ReturnType Returning { get; set; }

Property Value

QueryOptions.ReturnType

Upsert

If the record should be upserted

public bool Upsert { get; set; }

Property Value

bool

Methods

ToHeaders()

public Dictionary<string, string> ToHeaders()

Returns

Dictionary<string, string>