-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquery_without_ctx.go
105 lines (79 loc) · 4.02 KB
/
query_without_ctx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Code generated from query.go using tools/withoutctx.go; DO NOT EDIT.
package redash
import (
"bytes"
"context"
"io"
)
func (client *ClientWithoutContext) ListQueries(input *ListQueriesInput) (*QueryPage, error) {
return client.withCtx.ListQueries(context.Background(), input)
}
func (client *ClientWithoutContext) GetQuery(id int) (*Query, error) {
return client.withCtx.GetQuery(context.Background(), id)
}
func (client *ClientWithoutContext) CreateFavoriteQuery(id int) error {
return client.withCtx.CreateFavoriteQuery(context.Background(), id)
}
func (client *ClientWithoutContext) CreateQuery(input *CreateQueryInput) (*Query, error) {
return client.withCtx.CreateQuery(context.Background(), input)
}
func (client *ClientWithoutContext) ForkQuery(id int) (*Query, error) {
return client.withCtx.ForkQuery(context.Background(), id)
}
func (client *ClientWithoutContext) UpdateQuery(id int, input *UpdateQueryInput) (*Query, error) {
return client.withCtx.UpdateQuery(context.Background(), id, input)
}
func (client *ClientWithoutContext) PublishQuery(id int) error {
return client.withCtx.PublishQuery(context.Background(), id)
}
func (client *ClientWithoutContext) UnpublishQuery(id int) error {
return client.withCtx.UnpublishQuery(context.Background(), id)
}
func (client *ClientWithoutContext) ArchiveQuery(id int) error {
return client.withCtx.ArchiveQuery(context.Background(), id)
}
func (client *ClientWithoutContext) GetQueryResultsJSON(id int, out io.Writer) error {
return client.withCtx.GetQueryResultsJSON(context.Background(), id, out)
}
func (client *ClientWithoutContext) GetQueryResultsStruct(id int) (*GetQueryResultsOutput, error) {
return client.withCtx.GetQueryResultsStruct(context.Background(), id)
}
func (client *ClientWithoutContext) GetQueryResultsCSV(id int, out io.Writer) error {
return client.withCtx.GetQueryResultsCSV(context.Background(), id, out)
}
func (client *ClientWithoutContext) GetQueryResults(id int, ext string, out io.Writer) error {
return client.withCtx.GetQueryResults(context.Background(), id, ext, out)
}
func (client *ClientWithoutContext) GetQueryResultByID(queryResultId int, ext string, out *bytes.Buffer) error {
return client.withCtx.GetQueryResultByID(context.Background(), queryResultId, ext, out)
}
func (client *ClientWithoutContext) ExecQueryJSON(id int, input *ExecQueryJSONInput, out io.Writer) (*JobResponse, error) {
return client.withCtx.ExecQueryJSON(context.Background(), id, input, out)
}
func (client *ClientWithoutContext) WaitQueryJSON(queryId int, job *JobResponse, option *WaitQueryJSONOption, out io.Writer) error {
return client.withCtx.WaitQueryJSON(context.Background(), queryId, job, option, out)
}
func (client *ClientWithoutContext) WaitQueryStruct(queryId int, job *JobResponse, option *WaitQueryJSONOption, buf *bytes.Buffer) (*GetQueryResultsOutput, error) {
return client.withCtx.WaitQueryStruct(context.Background(), queryId, job, option, buf)
}
func (client *ClientWithoutContext) GetQueryTags() (*QueryTags, error) {
return client.withCtx.GetQueryTags(context.Background())
}
func (client *ClientWithoutContext) RefreshQuery(id int, input *RefreshQueryInput) (*JobResponse, error) {
return client.withCtx.RefreshQuery(context.Background(), id, input)
}
func (client *ClientWithoutContext) SearchQueries(input *SearchQueriesInput) (*QueryPage, error) {
return client.withCtx.SearchQueries(context.Background(), input)
}
func (client *ClientWithoutContext) ListMyQueries(input *ListMyQueriesInput) (*QueryPage, error) {
return client.withCtx.ListMyQueries(context.Background(), input)
}
func (client *ClientWithoutContext) ListFavoriteQueries(input *ListFavoriteQueriesInput) (*QueryPage, error) {
return client.withCtx.ListFavoriteQueries(context.Background(), input)
}
func (client *ClientWithoutContext) FormatQuery(query string) (*FormatQueryOutput, error) {
return client.withCtx.FormatQuery(context.Background(), query)
}
func (client *ClientWithoutContext) ListRecentQueries() ([]Query, error) {
return client.withCtx.ListRecentQueries(context.Background())
}