From 90e437ad7bb75ae356bb3c8112f4cf832b800397 Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 13 Jul 2024 11:15:17 -0700 Subject: [PATCH] docs: improve method comments --- querybuilder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/querybuilder.go b/querybuilder.go index 5803b57..c25a951 100644 --- a/querybuilder.go +++ b/querybuilder.go @@ -42,14 +42,14 @@ func (q *QueryBuilder) ExecuteWithContext(ctx context.Context) ([]byte, int64, e // ExecuteTo runs the PostgREST query, encoding the result to the supplied // interface. Note that the argument for the to parameter should always be a -// reference to a slice. +// reference to a slice unless the filter method Single is specified. func (q *QueryBuilder) ExecuteTo(to interface{}) (int64, error) { return executeTo(context.Background(), q.client, q.method, q.body, to, []string{q.tableName}, q.headers, q.params) } // ExecuteToWithContext runs the PostgREST query with the given context, // encoding the result to the supplied interface. Note that the argument for -// the to parameter should always be a reference to a slice. +// the to parameter should always be a reference to a slice unless the filter method Single is specified. func (q *QueryBuilder) ExecuteToWithContext(ctx context.Context, to interface{}) (int64, error) { return executeTo(ctx, q.client, q.method, q.body, to, []string{q.tableName}, q.headers, q.params) }