-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsession.go
284 lines (235 loc) · 6.79 KB
/
session.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
// Code generated by ./gen. DO NOT EDIT.
package wrapper
import (
"context"
"xorm.io/xorm"
"xorm.io/xorm/contexts"
)
type session struct {
*xorm.Session
}
// After overrides (*xorm.Session).After method.
func (s *session) After(x0 func(any)) *Session {
s.Session.After(x0)
return &Session{s}
}
// Alias overrides (*xorm.Session).Alias method.
func (s *session) Alias(x0 string) *Session {
s.Session.Alias(x0)
return &Session{s}
}
// AllCols overrides (*xorm.Session).AllCols method.
func (s *session) AllCols() *Session {
s.Session.AllCols()
return &Session{s}
}
// And overrides (*xorm.Session).And method.
func (s *session) And(x0 any, x1 ...any) *Session {
s.Session.And(x0, x1...)
return &Session{s}
}
// Asc overrides (*xorm.Session).Asc method.
func (s *session) Asc(x0 ...string) *Session {
s.Session.Asc(x0...)
return &Session{s}
}
// Before overrides (*xorm.Session).Before method.
func (s *session) Before(x0 func(any)) *Session {
s.Session.Before(x0)
return &Session{s}
}
// BufferSize overrides (*xorm.Session).BufferSize method.
func (s *session) BufferSize(x0 int) *Session {
s.Session.BufferSize(x0)
return &Session{s}
}
// Cascade overrides (*xorm.Session).Cascade method.
func (s *session) Cascade(x0 ...bool) *Session {
s.Session.Cascade(x0...)
return &Session{s}
}
// Charset overrides (*xorm.Session).Charset method.
func (s *session) Charset(x0 string) *Session {
s.Session.Charset(x0)
return &Session{s}
}
// Cols overrides (*xorm.Session).Cols method.
func (s *session) Cols(x0 ...string) *Session {
s.Session.Cols(x0...)
return &Session{s}
}
// Context overrides (*xorm.Session).Context method.
func (s *session) Context(x0 context.Context) *Session {
s.Session.Context(x0)
return &Session{s}
}
// ContextCache overrides (*xorm.Session).ContextCache method.
func (s *session) ContextCache(x0 contexts.ContextCache) *Session {
s.Session.ContextCache(x0)
return &Session{s}
}
// Decr overrides (*xorm.Session).Decr method.
func (s *session) Decr(x0 string, x1 ...any) *Session {
s.Session.Decr(x0, x1...)
return &Session{s}
}
// Desc overrides (*xorm.Session).Desc method.
func (s *session) Desc(x0 ...string) *Session {
s.Session.Desc(x0...)
return &Session{s}
}
// Distinct overrides (*xorm.Session).Distinct method.
func (s *session) Distinct(x0 ...string) *Session {
s.Session.Distinct(x0...)
return &Session{s}
}
// ForUpdate overrides (*xorm.Session).ForUpdate method.
func (s *session) ForUpdate() *Session {
s.Session.ForUpdate()
return &Session{s}
}
// GroupBy overrides (*xorm.Session).GroupBy method.
func (s *session) GroupBy(x0 string) *Session {
s.Session.GroupBy(x0)
return &Session{s}
}
// Having overrides (*xorm.Session).Having method.
func (s *session) Having(x0 string) *Session {
s.Session.Having(x0)
return &Session{s}
}
// ID overrides (*xorm.Session).ID method.
func (s *session) ID(x0 any) *Session {
s.Session.ID(x0)
return &Session{s}
}
// In overrides (*xorm.Session).In method.
func (s *session) In(x0 string, x1 ...any) *Session {
s.Session.In(x0, x1...)
return &Session{s}
}
// Incr overrides (*xorm.Session).Incr method.
func (s *session) Incr(x0 string, x1 ...any) *Session {
s.Session.Incr(x0, x1...)
return &Session{s}
}
// IndexHint overrides (*xorm.Session).IndexHint method.
func (s *session) IndexHint(x0 string, x1 string, x2 string) *Session {
s.Session.IndexHint(x0, x1, x2)
return &Session{s}
}
// Join overrides (*xorm.Session).Join method.
func (s *session) Join(x0 string, x1 any, x2 any, x3 ...any) *Session {
s.Session.Join(x0, x1, x2, x3...)
return &Session{s}
}
// Limit overrides (*xorm.Session).Limit method.
func (s *session) Limit(x0 int, x1 ...int) *Session {
s.Session.Limit(x0, x1...)
return &Session{s}
}
// MustCols overrides (*xorm.Session).MustCols method.
func (s *session) MustCols(x0 ...string) *Session {
s.Session.MustCols(x0...)
return &Session{s}
}
// MustLogSQL overrides (*xorm.Session).MustLogSQL method.
func (s *session) MustLogSQL(x0 ...bool) *Session {
s.Session.MustLogSQL(x0...)
return &Session{s}
}
// NoAutoCondition overrides (*xorm.Session).NoAutoCondition method.
func (s *session) NoAutoCondition(x0 ...bool) *Session {
s.Session.NoAutoCondition(x0...)
return &Session{s}
}
// NoAutoTime overrides (*xorm.Session).NoAutoTime method.
func (s *session) NoAutoTime() *Session {
s.Session.NoAutoTime()
return &Session{s}
}
// NoCache overrides (*xorm.Session).NoCache method.
func (s *session) NoCache() *Session {
s.Session.NoCache()
return &Session{s}
}
// NoCascade overrides (*xorm.Session).NoCascade method.
func (s *session) NoCascade() *Session {
s.Session.NoCascade()
return &Session{s}
}
// NoVersionCheck overrides (*xorm.Session).NoVersionCheck method.
func (s *session) NoVersionCheck() *Session {
s.Session.NoVersionCheck()
return &Session{s}
}
// NotIn overrides (*xorm.Session).NotIn method.
func (s *session) NotIn(x0 string, x1 ...any) *Session {
s.Session.NotIn(x0, x1...)
return &Session{s}
}
// Nullable overrides (*xorm.Session).Nullable method.
func (s *session) Nullable(x0 ...string) *Session {
s.Session.Nullable(x0...)
return &Session{s}
}
// Omit overrides (*xorm.Session).Omit method.
func (s *session) Omit(x0 ...string) *Session {
s.Session.Omit(x0...)
return &Session{s}
}
// Or overrides (*xorm.Session).Or method.
func (s *session) Or(x0 any, x1 ...any) *Session {
s.Session.Or(x0, x1...)
return &Session{s}
}
// OrderBy overrides (*xorm.Session).OrderBy method.
func (s *session) OrderBy(x0 any, x1 ...any) *Session {
s.Session.OrderBy(x0, x1...)
return &Session{s}
}
// Prepare overrides (*xorm.Session).Prepare method.
func (s *session) Prepare() *Session {
s.Session.Prepare()
return &Session{s}
}
// SQL overrides (*xorm.Session).SQL method.
func (s *session) SQL(x0 any, x1 ...any) *Session {
s.Session.SQL(x0, x1...)
return &Session{s}
}
// Select overrides (*xorm.Session).Select method.
func (s *session) Select(x0 string) *Session {
s.Session.Select(x0)
return &Session{s}
}
// SetExpr overrides (*xorm.Session).SetExpr method.
func (s *session) SetExpr(x0 string, x1 any) *Session {
s.Session.SetExpr(x0, x1)
return &Session{s}
}
// StoreEngine overrides (*xorm.Session).StoreEngine method.
func (s *session) StoreEngine(x0 string) *Session {
s.Session.StoreEngine(x0)
return &Session{s}
}
// Table overrides (*xorm.Session).Table method.
func (s *session) Table(x0 any) *Session {
s.Session.Table(x0)
return &Session{s}
}
// Unscoped overrides (*xorm.Session).Unscoped method.
func (s *session) Unscoped() *Session {
s.Session.Unscoped()
return &Session{s}
}
// UseBool overrides (*xorm.Session).UseBool method.
func (s *session) UseBool(x0 ...string) *Session {
s.Session.UseBool(x0...)
return &Session{s}
}
// Where overrides (*xorm.Session).Where method.
func (s *session) Where(x0 any, x1 ...any) *Session {
s.Session.Where(x0, x1...)
return &Session{s}
}