import { PostgrestBuilder, PostgrestMaybeSingleResponse, PostgrestResponse, PostgrestSingleResponse } from './types'; /** * Post-filters (transforms) */ export default class PostgrestTransformBuilder extends PostgrestBuilder { /** * Performs vertical filtering with SELECT. * * @param columns The columns to retrieve, separated by commas. */ select(columns?: string): this; /** * Orders the result with the specified `column`. * * @param column The column to order on. * @param ascending If `true`, the result will be in ascending order. * @param nullsFirst If `true`, `null`s appear first. * @param foreignTable The foreign table to use (if `column` is a foreign column). */ order(column: keyof T, { ascending, nullsFirst, foreignTable, }?: { ascending?: boolean; nullsFirst?: boolean; foreignTable?: string; }): this; /** * Limits the result with the specified `count`. * * @param count The maximum no. of rows to limit to. * @param foreignTable The foreign table to use (for foreign columns). */ limit(count: number, { foreignTable }?: { foreignTable?: string; }): this; /** * Limits the result to rows within the specified range, inclusive. * * @param from The starting index from which to limit the result, inclusive. * @param to The last index to which to limit the result, inclusive. * @param foreignTable The foreign table to use (for foreign columns). */ range(from: number, to: number, { foreignTable }?: { foreignTable?: string; }): this; /** * Sets the AbortSignal for the fetch request. */ abortSignal(signal: AbortSignal): this; /** * Retrieves only one row from the result. Result must be one row (e.g. using * `limit`), otherwise this will result in an error. */ single(): PromiseLike>; /** * Retrieves at most one row from the result. Result must be at most one row * (e.g. using `eq` on a UNIQUE column), otherwise this will result in an * error. */ maybeSingle(): PromiseLike>; /** * Set the response type to CSV. */ csv(): PromiseLike>; /** * Set the response type to GeoJSON. */ geojson(): PromiseLike>>; /** * Obtains the EXPLAIN plan for this request. * * @param analyze If `true`, the query will be executed and the actual run time will be displayed. * @param verbose If `true`, the query identifier will be displayed and the result will include the output columns of the query. * @param settings If `true`, include information on configuration parameters that affect query planning. * @param buffers If `true`, include information on buffer usage. * @param wal If `true`, include information on WAL record generation */ explain({ analyze, verbose, settings, buffers, wal, }?: { analyze?: boolean; verbose?: boolean; settings?: boolean; buffers?: boolean; wal?: boolean; }): PromiseLike>>; } //# sourceMappingURL=PostgrestTransformBuilder.d.ts.map