@@ -20,13 +20,13 @@ type FakeConnectionPool struct {
2020
2121 selectCalls int
2222 selectStatement string
23- selectParameters []interface {}
23+ selectParameters []any
2424 selectResult * FakeSelectResult
2525 selectError error
2626
2727 executeCalls int
2828 executeStatement string
29- executeParameters []interface {}
29+ executeParameters []any
3030 executeResult uint64
3131 executeError error
3232}
@@ -46,14 +46,14 @@ func (this *FakeConnectionPool) Close() error {
4646 return this .closeError
4747}
4848
49- func (this * FakeConnectionPool ) Execute (_ context.Context , statement string , parameters ... interface {} ) (uint64 , error ) {
49+ func (this * FakeConnectionPool ) Execute (_ context.Context , statement string , parameters ... any ) (uint64 , error ) {
5050 this .executeCalls ++
5151 this .executeStatement = statement
5252 this .executeParameters = parameters
5353 return this .executeResult , this .executeError
5454}
5555
56- func (this * FakeConnectionPool ) Select (_ context.Context , statement string , parameters ... interface {} ) (SelectResult , error ) {
56+ func (this * FakeConnectionPool ) Select (_ context.Context , statement string , parameters ... any ) (SelectResult , error ) {
5757 this .selectCalls ++
5858 this .selectStatement = statement
5959 this .selectParameters = parameters
@@ -71,13 +71,13 @@ type FakeTransaction struct {
7171
7272 selectCalls int
7373 selectStatement string
74- selectParameters []interface {}
74+ selectParameters []any
7575 selectResult * FakeSelectResult
7676 selectError error
7777
7878 executeCalls int
7979 executeStatement string
80- executeParameters []interface {}
80+ executeParameters []any
8181 executeResult uint64
8282 executeError error
8383}
@@ -92,14 +92,14 @@ func (this *FakeTransaction) Rollback() error {
9292 return this .rollbackError
9393}
9494
95- func (this * FakeTransaction ) Execute (_ context.Context , statement string , parameters ... interface {} ) (uint64 , error ) {
95+ func (this * FakeTransaction ) Execute (_ context.Context , statement string , parameters ... any ) (uint64 , error ) {
9696 this .executeCalls ++
9797 this .executeStatement = statement
9898 this .executeParameters = parameters
9999 return this .executeResult , this .executeError
100100}
101101
102- func (this * FakeTransaction ) Select (_ context.Context , statement string , parameters ... interface {} ) (SelectResult , error ) {
102+ func (this * FakeTransaction ) Select (_ context.Context , statement string , parameters ... any ) (SelectResult , error ) {
103103 this .selectCalls ++
104104 this .selectStatement = statement
105105 this .selectParameters = parameters
@@ -135,7 +135,7 @@ func (this *FakeSelectResult) Close() error {
135135 return this .closeError
136136}
137137
138- func (this * FakeSelectResult ) Scan (_ ... interface {} ) error {
138+ func (this * FakeSelectResult ) Scan (_ ... any ) error {
139139 this .scanCalls ++
140140 return this .scanError
141141}
@@ -146,10 +146,10 @@ type FakeExecutor struct {
146146 affected uint64
147147 errorsToReturn []error
148148 statements []string
149- parameters [][]interface {}
149+ parameters [][]any
150150}
151151
152- func (this * FakeExecutor ) Execute (_ context.Context , statement string , parameters ... interface {} ) (uint64 , error ) {
152+ func (this * FakeExecutor ) Execute (_ context.Context , statement string , parameters ... any ) (uint64 , error ) {
153153 this .statements = append (this .statements , strings .TrimSpace (statement ))
154154 this .parameters = append (this .parameters , parameters )
155155
@@ -176,13 +176,13 @@ type FakeBindingConnectionPool struct {
176176 selectCalls int
177177 selectBinder Binder
178178 selectStatement string
179- selectParameters []interface {}
179+ selectParameters []any
180180 selectResult * FakeSelectResult
181181 selectError error
182182
183183 executeCalls int
184184 executeStatement string
185- executeParameters []interface {}
185+ executeParameters []any
186186 executeResult uint64
187187 executeError error
188188}
@@ -202,14 +202,14 @@ func (this *FakeBindingConnectionPool) Close() error {
202202 return this .closeError
203203}
204204
205- func (this * FakeBindingConnectionPool ) Execute (_ context.Context , statement string , parameters ... interface {} ) (uint64 , error ) {
205+ func (this * FakeBindingConnectionPool ) Execute (_ context.Context , statement string , parameters ... any ) (uint64 , error ) {
206206 this .executeCalls ++
207207 this .executeStatement = statement
208208 this .executeParameters = parameters
209209 return this .executeResult , this .executeError
210210}
211211
212- func (this * FakeBindingConnectionPool ) BindSelect (_ context.Context , binder Binder , statement string , parameters ... interface {} ) error {
212+ func (this * FakeBindingConnectionPool ) BindSelect (_ context.Context , binder Binder , statement string , parameters ... any ) error {
213213 this .selectCalls ++
214214 this .selectBinder = binder
215215 this .selectStatement = statement
@@ -230,11 +230,11 @@ func (this *FakeBindingTransaction) Rollback() error {
230230 panic ("Not called" )
231231}
232232
233- func (this * FakeBindingTransaction ) Execute (_ context.Context , _ string , _ ... interface {} ) (uint64 , error ) {
233+ func (this * FakeBindingTransaction ) Execute (_ context.Context , _ string , _ ... any ) (uint64 , error ) {
234234 panic ("Not called" )
235235}
236236
237- func (this * FakeBindingTransaction ) BindSelect (_ context.Context , _ Binder , _ string , _ ... interface {} ) error {
237+ func (this * FakeBindingTransaction ) BindSelect (_ context.Context , _ Binder , _ string , _ ... any ) error {
238238 panic ("Not called" )
239239}
240240
0 commit comments