@@ -25,8 +25,8 @@ func (f *FilterBuilder) ExecuteString() (string, int64, error) {
2525 return executeString (context .Background (), f .client , f .method , f .body , []string {f .tableName }, f .headers , f .params )
2626}
2727
28- // Execute runs the PostgREST query with the given context , returning the
29- // result as a byte slice .
28+ // ExecuteStringWithContext runs the PostgREST query, returning the result as
29+ // a JSON string .
3030func (f * FilterBuilder ) ExecuteStringWithContext (ctx context.Context ) (string , int64 , error ) {
3131 return executeString (ctx , f .client , f .method , f .body , []string {f .tableName }, f .headers , f .params )
3232}
@@ -36,8 +36,8 @@ func (f *FilterBuilder) Execute() ([]byte, int64, error) {
3636 return execute (context .Background (), f .client , f .method , f .body , []string {f .tableName }, f .headers , f .params )
3737}
3838
39- // Execute runs the PostgREST query with the given context, returning the
40- // result as a byte slice.
39+ // ExecuteWithContext runs the PostgREST query with the given context,
40+ // returning the result as a byte slice.
4141func (f * FilterBuilder ) ExecuteWithContext (ctx context.Context ) ([]byte , int64 , error ) {
4242 return execute (ctx , f .client , f .method , f .body , []string {f .tableName }, f .headers , f .params )
4343}
@@ -49,9 +49,9 @@ func (f *FilterBuilder) ExecuteTo(to interface{}) (countType, error) {
4949 return executeTo (context .Background (), f .client , f .method , f .body , to , []string {f .tableName }, f .headers , f .params )
5050}
5151
52- // ExecuteTo runs the PostgREST query with the given context, encoding the
53- // result to the supplied interface. Note that the argument for the to
54- // parameter should always be a reference to a slice.
52+ // ExecuteToWithContext runs the PostgREST query with the given context,
53+ // encoding the result to the supplied interface. Note that the argument for
54+ // the to parameter should always be a reference to a slice.
5555func (f * FilterBuilder ) ExecuteToWithContext (ctx context.Context , to interface {}) (countType , error ) {
5656 return executeTo (ctx , f .client , f .method , f .body , to , []string {f .tableName }, f .headers , f .params )
5757}
0 commit comments