From 03a986c3ac7ffb68909e37002731c20a4d7b2abe Mon Sep 17 00:00:00 2001 From: bdotsamir Date: Sun, 25 Jun 2023 20:36:18 -0400 Subject: [PATCH] PostgrestQueryBUilder: add method for setting the schema for a single request --- src/PostgrestQueryBuilder.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PostgrestQueryBuilder.ts b/src/PostgrestQueryBuilder.ts index d94c4c4c..7495f727 100644 --- a/src/PostgrestQueryBuilder.ts +++ b/src/PostgrestQueryBuilder.ts @@ -32,6 +32,11 @@ export default class PostgrestQueryBuilder< this.fetch = fetch } + setSchema(schema?: string): PostgrestQueryBuilder { + this.schema = schema + return this + } + /** * Perform a SELECT query on the table or view. *