Skip to content

Commit bbd1ae5

Browse files
Fixed comments
1 parent f6f2d82 commit bbd1ae5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

filterbuilder.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
3030
func (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.
4141
func (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.
5555
func (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
}

querybuilder.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ func (q *QueryBuilder) ExecuteString() (string, int64, error) {
2323
return executeString(context.Background(), q.client, q.method, q.body, []string{q.tableName}, q.headers, q.params)
2424
}
2525

26-
// Execute runs the PostgREST query with the given context, returning the
27-
// result as a byte slice.
26+
// ExecuteStringWithContext runs the PostgREST query, returning the result as
27+
// a JSON string.
2828
func (q *QueryBuilder) ExecuteStringWithContext(ctx context.Context) (string, int64, error) {
2929
return executeString(ctx, q.client, q.method, q.body, []string{q.tableName}, q.headers, q.params)
3030
}
@@ -34,8 +34,8 @@ func (q *QueryBuilder) Execute() ([]byte, int64, error) {
3434
return execute(context.Background(), q.client, q.method, q.body, []string{q.tableName}, q.headers, q.params)
3535
}
3636

37-
// Execute runs the PostgREST query with the given context, returning the
38-
// result as a byte slice.
37+
// ExecuteWithContext runs the PostgREST query with the given context,
38+
// returning the result as a byte slice.
3939
func (q *QueryBuilder) ExecuteWithContext(ctx context.Context) ([]byte, int64, error) {
4040
return execute(ctx, q.client, q.method, q.body, []string{q.tableName}, q.headers, q.params)
4141
}
@@ -47,9 +47,9 @@ func (q *QueryBuilder) ExecuteTo(to interface{}) (int64, error) {
4747
return executeTo(context.Background(), q.client, q.method, q.body, to, []string{q.tableName}, q.headers, q.params)
4848
}
4949

50-
// ExecuteTo runs the PostgREST query with the given context, encoding the
51-
// result to the supplied interface. Note that the argument for the to
52-
// parameter should always be a reference to a slice.
50+
// ExecuteToWithContext runs the PostgREST query with the given context,
51+
// encoding the result to the supplied interface. Note that the argument for
52+
// the to parameter should always be a reference to a slice.
5353
func (q *QueryBuilder) ExecuteToWithContext(ctx context.Context, to interface{}) (int64, error) {
5454
return executeTo(ctx, q.client, q.method, q.body, to, []string{q.tableName}, q.headers, q.params)
5555
}

0 commit comments

Comments
 (0)