| 1 | // Code generated by 'yaegi extract database/sql/driver'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 5 | |
| 6 | package stdlib |
| 7 | |
| 8 | import ( |
| 9 | "context" |
| 10 | "database/sql/driver" |
| 11 | "reflect" |
| 12 | ) |
| 13 | |
| 14 | func init() { |
| 15 | Symbols["database/sql/driver/driver"] = map[string]reflect.Value{ |
| 16 | // function, constant and variable definitions |
| 17 | "Bool": reflect.ValueOf(&driver.Bool).Elem(), |
| 18 | "DefaultParameterConverter": reflect.ValueOf(&driver.DefaultParameterConverter).Elem(), |
| 19 | "ErrBadConn": reflect.ValueOf(&driver.ErrBadConn).Elem(), |
| 20 | "ErrRemoveArgument": reflect.ValueOf(&driver.ErrRemoveArgument).Elem(), |
| 21 | "ErrSkip": reflect.ValueOf(&driver.ErrSkip).Elem(), |
| 22 | "Int32": reflect.ValueOf(&driver.Int32).Elem(), |
| 23 | "IsScanValue": reflect.ValueOf(driver.IsScanValue), |
| 24 | "IsValue": reflect.ValueOf(driver.IsValue), |
| 25 | "ResultNoRows": reflect.ValueOf(&driver.ResultNoRows).Elem(), |
| 26 | "String": reflect.ValueOf(&driver.String).Elem(), |
| 27 | |
| 28 | // type definitions |
| 29 | "ColumnConverter": reflect.ValueOf((*driver.ColumnConverter)(nil)), |
| 30 | "Conn": reflect.ValueOf((*driver.Conn)(nil)), |
| 31 | "ConnBeginTx": reflect.ValueOf((*driver.ConnBeginTx)(nil)), |
| 32 | "ConnPrepareContext": reflect.ValueOf((*driver.ConnPrepareContext)(nil)), |
| 33 | "Connector": reflect.ValueOf((*driver.Connector)(nil)), |
| 34 | "Driver": reflect.ValueOf((*driver.Driver)(nil)), |
| 35 | "DriverContext": reflect.ValueOf((*driver.DriverContext)(nil)), |
| 36 | "Execer": reflect.ValueOf((*driver.Execer)(nil)), |
| 37 | "ExecerContext": reflect.ValueOf((*driver.ExecerContext)(nil)), |
| 38 | "IsolationLevel": reflect.ValueOf((*driver.IsolationLevel)(nil)), |
| 39 | "NamedValue": reflect.ValueOf((*driver.NamedValue)(nil)), |
| 40 | "NamedValueChecker": reflect.ValueOf((*driver.NamedValueChecker)(nil)), |
| 41 | "NotNull": reflect.ValueOf((*driver.NotNull)(nil)), |
| 42 | "Null": reflect.ValueOf((*driver.Null)(nil)), |
| 43 | "Pinger": reflect.ValueOf((*driver.Pinger)(nil)), |
| 44 | "Queryer": reflect.ValueOf((*driver.Queryer)(nil)), |
| 45 | "QueryerContext": reflect.ValueOf((*driver.QueryerContext)(nil)), |
| 46 | "Result": reflect.ValueOf((*driver.Result)(nil)), |
| 47 | "Rows": reflect.ValueOf((*driver.Rows)(nil)), |
| 48 | "RowsAffected": reflect.ValueOf((*driver.RowsAffected)(nil)), |
| 49 | "RowsColumnTypeDatabaseTypeName": reflect.ValueOf((*driver.RowsColumnTypeDatabaseTypeName)(nil)), |
| 50 | "RowsColumnTypeLength": reflect.ValueOf((*driver.RowsColumnTypeLength)(nil)), |
| 51 | "RowsColumnTypeNullable": reflect.ValueOf((*driver.RowsColumnTypeNullable)(nil)), |
| 52 | "RowsColumnTypePrecisionScale": reflect.ValueOf((*driver.RowsColumnTypePrecisionScale)(nil)), |
| 53 | "RowsColumnTypeScanType": reflect.ValueOf((*driver.RowsColumnTypeScanType)(nil)), |
| 54 | "RowsNextResultSet": reflect.ValueOf((*driver.RowsNextResultSet)(nil)), |
| 55 | "SessionResetter": reflect.ValueOf((*driver.SessionResetter)(nil)), |
| 56 | "Stmt": reflect.ValueOf((*driver.Stmt)(nil)), |
| 57 | "StmtExecContext": reflect.ValueOf((*driver.StmtExecContext)(nil)), |
| 58 | "StmtQueryContext": reflect.ValueOf((*driver.StmtQueryContext)(nil)), |
| 59 | "Tx": reflect.ValueOf((*driver.Tx)(nil)), |
| 60 | "TxOptions": reflect.ValueOf((*driver.TxOptions)(nil)), |
| 61 | "Validator": reflect.ValueOf((*driver.Validator)(nil)), |
| 62 | "Value": reflect.ValueOf((*driver.Value)(nil)), |
| 63 | "ValueConverter": reflect.ValueOf((*driver.ValueConverter)(nil)), |
| 64 | "Valuer": reflect.ValueOf((*driver.Valuer)(nil)), |
| 65 | |
| 66 | // interface wrapper definitions |
| 67 | "_ColumnConverter": reflect.ValueOf((*_database_sql_driver_ColumnConverter)(nil)), |
| 68 | "_Conn": reflect.ValueOf((*_database_sql_driver_Conn)(nil)), |
| 69 | "_ConnBeginTx": reflect.ValueOf((*_database_sql_driver_ConnBeginTx)(nil)), |
| 70 | "_ConnPrepareContext": reflect.ValueOf((*_database_sql_driver_ConnPrepareContext)(nil)), |
| 71 | "_Connector": reflect.ValueOf((*_database_sql_driver_Connector)(nil)), |
| 72 | "_Driver": reflect.ValueOf((*_database_sql_driver_Driver)(nil)), |
| 73 | "_DriverContext": reflect.ValueOf((*_database_sql_driver_DriverContext)(nil)), |
| 74 | "_Execer": reflect.ValueOf((*_database_sql_driver_Execer)(nil)), |
| 75 | "_ExecerContext": reflect.ValueOf((*_database_sql_driver_ExecerContext)(nil)), |
| 76 | "_NamedValueChecker": reflect.ValueOf((*_database_sql_driver_NamedValueChecker)(nil)), |
| 77 | "_Pinger": reflect.ValueOf((*_database_sql_driver_Pinger)(nil)), |
| 78 | "_Queryer": reflect.ValueOf((*_database_sql_driver_Queryer)(nil)), |
| 79 | "_QueryerContext": reflect.ValueOf((*_database_sql_driver_QueryerContext)(nil)), |
| 80 | "_Result": reflect.ValueOf((*_database_sql_driver_Result)(nil)), |
| 81 | "_Rows": reflect.ValueOf((*_database_sql_driver_Rows)(nil)), |
| 82 | "_RowsColumnTypeDatabaseTypeName": reflect.ValueOf((*_database_sql_driver_RowsColumnTypeDatabaseTypeName)(nil)), |
| 83 | "_RowsColumnTypeLength": reflect.ValueOf((*_database_sql_driver_RowsColumnTypeLength)(nil)), |
| 84 | "_RowsColumnTypeNullable": reflect.ValueOf((*_database_sql_driver_RowsColumnTypeNullable)(nil)), |
| 85 | "_RowsColumnTypePrecisionScale": reflect.ValueOf((*_database_sql_driver_RowsColumnTypePrecisionScale)(nil)), |
| 86 | "_RowsColumnTypeScanType": reflect.ValueOf((*_database_sql_driver_RowsColumnTypeScanType)(nil)), |
| 87 | "_RowsNextResultSet": reflect.ValueOf((*_database_sql_driver_RowsNextResultSet)(nil)), |
| 88 | "_SessionResetter": reflect.ValueOf((*_database_sql_driver_SessionResetter)(nil)), |
| 89 | "_Stmt": reflect.ValueOf((*_database_sql_driver_Stmt)(nil)), |
| 90 | "_StmtExecContext": reflect.ValueOf((*_database_sql_driver_StmtExecContext)(nil)), |
| 91 | "_StmtQueryContext": reflect.ValueOf((*_database_sql_driver_StmtQueryContext)(nil)), |
| 92 | "_Tx": reflect.ValueOf((*_database_sql_driver_Tx)(nil)), |
| 93 | "_Validator": reflect.ValueOf((*_database_sql_driver_Validator)(nil)), |
| 94 | "_Value": reflect.ValueOf((*_database_sql_driver_Value)(nil)), |
| 95 | "_ValueConverter": reflect.ValueOf((*_database_sql_driver_ValueConverter)(nil)), |
| 96 | "_Valuer": reflect.ValueOf((*_database_sql_driver_Valuer)(nil)), |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // _database_sql_driver_ColumnConverter is an interface wrapper for ColumnConverter type |
| 101 | type _database_sql_driver_ColumnConverter struct { |
| 102 | IValue interface{} |
| 103 | WColumnConverter func(idx int) driver.ValueConverter |
| 104 | } |
| 105 | |
| 106 | func (W _database_sql_driver_ColumnConverter) ColumnConverter(idx int) driver.ValueConverter { |
| 107 | return W.WColumnConverter(idx) |
| 108 | } |
| 109 | |
| 110 | // _database_sql_driver_Conn is an interface wrapper for Conn type |
| 111 | type _database_sql_driver_Conn struct { |
| 112 | IValue interface{} |
| 113 | WBegin func() (driver.Tx, error) |
| 114 | WClose func() error |
| 115 | WPrepare func(query string) (driver.Stmt, error) |
| 116 | } |
| 117 | |
| 118 | func (W _database_sql_driver_Conn) Begin() (driver.Tx, error) { return W.WBegin() } |
| 119 | func (W _database_sql_driver_Conn) Close() error { return W.WClose() } |
| 120 | func (W _database_sql_driver_Conn) Prepare(query string) (driver.Stmt, error) { |
| 121 | return W.WPrepare(query) |
| 122 | } |
| 123 | |
| 124 | // _database_sql_driver_ConnBeginTx is an interface wrapper for ConnBeginTx type |
| 125 | type _database_sql_driver_ConnBeginTx struct { |
| 126 | IValue interface{} |
| 127 | WBeginTx func(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) |
| 128 | } |
| 129 | |
| 130 | func (W _database_sql_driver_ConnBeginTx) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) { |
| 131 | return W.WBeginTx(ctx, opts) |
| 132 | } |
| 133 | |
| 134 | // _database_sql_driver_ConnPrepareContext is an interface wrapper for ConnPrepareContext type |
| 135 | type _database_sql_driver_ConnPrepareContext struct { |
| 136 | IValue interface{} |
| 137 | WPrepareContext func(ctx context.Context, query string) (driver.Stmt, error) |
| 138 | } |
| 139 | |
| 140 | func (W _database_sql_driver_ConnPrepareContext) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) { |
| 141 | return W.WPrepareContext(ctx, query) |
| 142 | } |
| 143 | |
| 144 | // _database_sql_driver_Connector is an interface wrapper for Connector type |
| 145 | type _database_sql_driver_Connector struct { |
| 146 | IValue interface{} |
| 147 | WConnect func(a0 context.Context) (driver.Conn, error) |
| 148 | WDriver func() driver.Driver |
| 149 | } |
| 150 | |
| 151 | func (W _database_sql_driver_Connector) Connect(a0 context.Context) (driver.Conn, error) { |
| 152 | return W.WConnect(a0) |
| 153 | } |
| 154 | func (W _database_sql_driver_Connector) Driver() driver.Driver { return W.WDriver() } |
| 155 | |
| 156 | // _database_sql_driver_Driver is an interface wrapper for Driver type |
| 157 | type _database_sql_driver_Driver struct { |
| 158 | IValue interface{} |
| 159 | WOpen func(name string) (driver.Conn, error) |
| 160 | } |
| 161 | |
| 162 | func (W _database_sql_driver_Driver) Open(name string) (driver.Conn, error) { return W.WOpen(name) } |
| 163 | |
| 164 | // _database_sql_driver_DriverContext is an interface wrapper for DriverContext type |
| 165 | type _database_sql_driver_DriverContext struct { |
| 166 | IValue interface{} |
| 167 | WOpenConnector func(name string) (driver.Connector, error) |
| 168 | } |
| 169 | |
| 170 | func (W _database_sql_driver_DriverContext) OpenConnector(name string) (driver.Connector, error) { |
| 171 | return W.WOpenConnector(name) |
| 172 | } |
| 173 | |
| 174 | // _database_sql_driver_Execer is an interface wrapper for Execer type |
| 175 | type _database_sql_driver_Execer struct { |
| 176 | IValue interface{} |
| 177 | WExec func(query string, args []driver.Value) (driver.Result, error) |
| 178 | } |
| 179 | |
| 180 | func (W _database_sql_driver_Execer) Exec(query string, args []driver.Value) (driver.Result, error) { |
| 181 | return W.WExec(query, args) |
| 182 | } |
| 183 | |
| 184 | // _database_sql_driver_ExecerContext is an interface wrapper for ExecerContext type |
| 185 | type _database_sql_driver_ExecerContext struct { |
| 186 | IValue interface{} |
| 187 | WExecContext func(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) |
| 188 | } |
| 189 | |
| 190 | func (W _database_sql_driver_ExecerContext) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) { |
| 191 | return W.WExecContext(ctx, query, args) |
| 192 | } |
| 193 | |
| 194 | // _database_sql_driver_NamedValueChecker is an interface wrapper for NamedValueChecker type |
| 195 | type _database_sql_driver_NamedValueChecker struct { |
| 196 | IValue interface{} |
| 197 | WCheckNamedValue func(a0 *driver.NamedValue) error |
| 198 | } |
| 199 | |
| 200 | func (W _database_sql_driver_NamedValueChecker) CheckNamedValue(a0 *driver.NamedValue) error { |
| 201 | return W.WCheckNamedValue(a0) |
| 202 | } |
| 203 | |
| 204 | // _database_sql_driver_Pinger is an interface wrapper for Pinger type |
| 205 | type _database_sql_driver_Pinger struct { |
| 206 | IValue interface{} |
| 207 | WPing func(ctx context.Context) error |
| 208 | } |
| 209 | |
| 210 | func (W _database_sql_driver_Pinger) Ping(ctx context.Context) error { return W.WPing(ctx) } |
| 211 | |
| 212 | // _database_sql_driver_Queryer is an interface wrapper for Queryer type |
| 213 | type _database_sql_driver_Queryer struct { |
| 214 | IValue interface{} |
| 215 | WQuery func(query string, args []driver.Value) (driver.Rows, error) |
| 216 | } |
| 217 | |
| 218 | func (W _database_sql_driver_Queryer) Query(query string, args []driver.Value) (driver.Rows, error) { |
| 219 | return W.WQuery(query, args) |
| 220 | } |
| 221 | |
| 222 | // _database_sql_driver_QueryerContext is an interface wrapper for QueryerContext type |
| 223 | type _database_sql_driver_QueryerContext struct { |
| 224 | IValue interface{} |
| 225 | WQueryContext func(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) |
| 226 | } |
| 227 | |
| 228 | func (W _database_sql_driver_QueryerContext) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) { |
| 229 | return W.WQueryContext(ctx, query, args) |
| 230 | } |
| 231 | |
| 232 | // _database_sql_driver_Result is an interface wrapper for Result type |
| 233 | type _database_sql_driver_Result struct { |
| 234 | IValue interface{} |
| 235 | WLastInsertId func() (int64, error) |
| 236 | WRowsAffected func() (int64, error) |
| 237 | } |
| 238 | |
| 239 | func (W _database_sql_driver_Result) LastInsertId() (int64, error) { return W.WLastInsertId() } |
| 240 | func (W _database_sql_driver_Result) RowsAffected() (int64, error) { return W.WRowsAffected() } |
| 241 | |
| 242 | // _database_sql_driver_Rows is an interface wrapper for Rows type |
| 243 | type _database_sql_driver_Rows struct { |
| 244 | IValue interface{} |
| 245 | WClose func() error |
| 246 | WColumns func() []string |
| 247 | WNext func(dest []driver.Value) error |
| 248 | } |
| 249 | |
| 250 | func (W _database_sql_driver_Rows) Close() error { return W.WClose() } |
| 251 | func (W _database_sql_driver_Rows) Columns() []string { return W.WColumns() } |
| 252 | func (W _database_sql_driver_Rows) Next(dest []driver.Value) error { return W.WNext(dest) } |
| 253 | |
| 254 | // _database_sql_driver_RowsColumnTypeDatabaseTypeName is an interface wrapper for RowsColumnTypeDatabaseTypeName type |
| 255 | type _database_sql_driver_RowsColumnTypeDatabaseTypeName struct { |
| 256 | IValue interface{} |
| 257 | WClose func() error |
| 258 | WColumnTypeDatabaseTypeName func(index int) string |
| 259 | WColumns func() []string |
| 260 | WNext func(dest []driver.Value) error |
| 261 | } |
| 262 | |
| 263 | func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Close() error { return W.WClose() } |
| 264 | func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) ColumnTypeDatabaseTypeName(index int) string { |
| 265 | return W.WColumnTypeDatabaseTypeName(index) |
| 266 | } |
| 267 | func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Columns() []string { return W.WColumns() } |
| 268 | func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Next(dest []driver.Value) error { |
| 269 | return W.WNext(dest) |
| 270 | } |
| 271 | |
| 272 | // _database_sql_driver_RowsColumnTypeLength is an interface wrapper for RowsColumnTypeLength type |
| 273 | type _database_sql_driver_RowsColumnTypeLength struct { |
| 274 | IValue interface{} |
| 275 | WClose func() error |
| 276 | WColumnTypeLength func(index int) (length int64, ok bool) |
| 277 | WColumns func() []string |
| 278 | WNext func(dest []driver.Value) error |
| 279 | } |
| 280 | |
| 281 | func (W _database_sql_driver_RowsColumnTypeLength) Close() error { return W.WClose() } |
| 282 | func (W _database_sql_driver_RowsColumnTypeLength) ColumnTypeLength(index int) (length int64, ok bool) { |
| 283 | return W.WColumnTypeLength(index) |
| 284 | } |
| 285 | func (W _database_sql_driver_RowsColumnTypeLength) Columns() []string { return W.WColumns() } |
| 286 | func (W _database_sql_driver_RowsColumnTypeLength) Next(dest []driver.Value) error { |
| 287 | return W.WNext(dest) |
| 288 | } |
| 289 | |
| 290 | // _database_sql_driver_RowsColumnTypeNullable is an interface wrapper for RowsColumnTypeNullable type |
| 291 | type _database_sql_driver_RowsColumnTypeNullable struct { |
| 292 | IValue interface{} |
| 293 | WClose func() error |
| 294 | WColumnTypeNullable func(index int) (nullable bool, ok bool) |
| 295 | WColumns func() []string |
| 296 | WNext func(dest []driver.Value) error |
| 297 | } |
| 298 | |
| 299 | func (W _database_sql_driver_RowsColumnTypeNullable) Close() error { return W.WClose() } |
| 300 | func (W _database_sql_driver_RowsColumnTypeNullable) ColumnTypeNullable(index int) (nullable bool, ok bool) { |
| 301 | return W.WColumnTypeNullable(index) |
| 302 | } |
| 303 | func (W _database_sql_driver_RowsColumnTypeNullable) Columns() []string { return W.WColumns() } |
| 304 | func (W _database_sql_driver_RowsColumnTypeNullable) Next(dest []driver.Value) error { |
| 305 | return W.WNext(dest) |
| 306 | } |
| 307 | |
| 308 | // _database_sql_driver_RowsColumnTypePrecisionScale is an interface wrapper for RowsColumnTypePrecisionScale type |
| 309 | type _database_sql_driver_RowsColumnTypePrecisionScale struct { |
| 310 | IValue interface{} |
| 311 | WClose func() error |
| 312 | WColumnTypePrecisionScale func(index int) (precision int64, scale int64, ok bool) |
| 313 | WColumns func() []string |
| 314 | WNext func(dest []driver.Value) error |
| 315 | } |
| 316 | |
| 317 | func (W _database_sql_driver_RowsColumnTypePrecisionScale) Close() error { return W.WClose() } |
| 318 | func (W _database_sql_driver_RowsColumnTypePrecisionScale) ColumnTypePrecisionScale(index int) (precision int64, scale int64, ok bool) { |
| 319 | return W.WColumnTypePrecisionScale(index) |
| 320 | } |
| 321 | func (W _database_sql_driver_RowsColumnTypePrecisionScale) Columns() []string { return W.WColumns() } |
| 322 | func (W _database_sql_driver_RowsColumnTypePrecisionScale) Next(dest []driver.Value) error { |
| 323 | return W.WNext(dest) |
| 324 | } |
| 325 | |
| 326 | // _database_sql_driver_RowsColumnTypeScanType is an interface wrapper for RowsColumnTypeScanType type |
| 327 | type _database_sql_driver_RowsColumnTypeScanType struct { |
| 328 | IValue interface{} |
| 329 | WClose func() error |
| 330 | WColumnTypeScanType func(index int) reflect.Type |
| 331 | WColumns func() []string |
| 332 | WNext func(dest []driver.Value) error |
| 333 | } |
| 334 | |
| 335 | func (W _database_sql_driver_RowsColumnTypeScanType) Close() error { return W.WClose() } |
| 336 | func (W _database_sql_driver_RowsColumnTypeScanType) ColumnTypeScanType(index int) reflect.Type { |
| 337 | return W.WColumnTypeScanType(index) |
| 338 | } |
| 339 | func (W _database_sql_driver_RowsColumnTypeScanType) Columns() []string { return W.WColumns() } |
| 340 | func (W _database_sql_driver_RowsColumnTypeScanType) Next(dest []driver.Value) error { |
| 341 | return W.WNext(dest) |
| 342 | } |
| 343 | |
| 344 | // _database_sql_driver_RowsNextResultSet is an interface wrapper for RowsNextResultSet type |
| 345 | type _database_sql_driver_RowsNextResultSet struct { |
| 346 | IValue interface{} |
| 347 | WClose func() error |
| 348 | WColumns func() []string |
| 349 | WHasNextResultSet func() bool |
| 350 | WNext func(dest []driver.Value) error |
| 351 | WNextResultSet func() error |
| 352 | } |
| 353 | |
| 354 | func (W _database_sql_driver_RowsNextResultSet) Close() error { return W.WClose() } |
| 355 | func (W _database_sql_driver_RowsNextResultSet) Columns() []string { return W.WColumns() } |
| 356 | func (W _database_sql_driver_RowsNextResultSet) HasNextResultSet() bool { return W.WHasNextResultSet() } |
| 357 | func (W _database_sql_driver_RowsNextResultSet) Next(dest []driver.Value) error { return W.WNext(dest) } |
| 358 | func (W _database_sql_driver_RowsNextResultSet) NextResultSet() error { return W.WNextResultSet() } |
| 359 | |
| 360 | // _database_sql_driver_SessionResetter is an interface wrapper for SessionResetter type |
| 361 | type _database_sql_driver_SessionResetter struct { |
| 362 | IValue interface{} |
| 363 | WResetSession func(ctx context.Context) error |
| 364 | } |
| 365 | |
| 366 | func (W _database_sql_driver_SessionResetter) ResetSession(ctx context.Context) error { |
| 367 | return W.WResetSession(ctx) |
| 368 | } |
| 369 | |
| 370 | // _database_sql_driver_Stmt is an interface wrapper for Stmt type |
| 371 | type _database_sql_driver_Stmt struct { |
| 372 | IValue interface{} |
| 373 | WClose func() error |
| 374 | WExec func(args []driver.Value) (driver.Result, error) |
| 375 | WNumInput func() int |
| 376 | WQuery func(args []driver.Value) (driver.Rows, error) |
| 377 | } |
| 378 | |
| 379 | func (W _database_sql_driver_Stmt) Close() error { return W.WClose() } |
| 380 | func (W _database_sql_driver_Stmt) Exec(args []driver.Value) (driver.Result, error) { |
| 381 | return W.WExec(args) |
| 382 | } |
| 383 | func (W _database_sql_driver_Stmt) NumInput() int { return W.WNumInput() } |
| 384 | func (W _database_sql_driver_Stmt) Query(args []driver.Value) (driver.Rows, error) { |
| 385 | return W.WQuery(args) |
| 386 | } |
| 387 | |
| 388 | // _database_sql_driver_StmtExecContext is an interface wrapper for StmtExecContext type |
| 389 | type _database_sql_driver_StmtExecContext struct { |
| 390 | IValue interface{} |
| 391 | WExecContext func(ctx context.Context, args []driver.NamedValue) (driver.Result, error) |
| 392 | } |
| 393 | |
| 394 | func (W _database_sql_driver_StmtExecContext) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) { |
| 395 | return W.WExecContext(ctx, args) |
| 396 | } |
| 397 | |
| 398 | // _database_sql_driver_StmtQueryContext is an interface wrapper for StmtQueryContext type |
| 399 | type _database_sql_driver_StmtQueryContext struct { |
| 400 | IValue interface{} |
| 401 | WQueryContext func(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) |
| 402 | } |
| 403 | |
| 404 | func (W _database_sql_driver_StmtQueryContext) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) { |
| 405 | return W.WQueryContext(ctx, args) |
| 406 | } |
| 407 | |
| 408 | // _database_sql_driver_Tx is an interface wrapper for Tx type |
| 409 | type _database_sql_driver_Tx struct { |
| 410 | IValue interface{} |
| 411 | WCommit func() error |
| 412 | WRollback func() error |
| 413 | } |
| 414 | |
| 415 | func (W _database_sql_driver_Tx) Commit() error { return W.WCommit() } |
| 416 | func (W _database_sql_driver_Tx) Rollback() error { return W.WRollback() } |
| 417 | |
| 418 | // _database_sql_driver_Validator is an interface wrapper for Validator type |
| 419 | type _database_sql_driver_Validator struct { |
| 420 | IValue interface{} |
| 421 | WIsValid func() bool |
| 422 | } |
| 423 | |
| 424 | func (W _database_sql_driver_Validator) IsValid() bool { return W.WIsValid() } |
| 425 | |
| 426 | // _database_sql_driver_Value is an interface wrapper for Value type |
| 427 | type _database_sql_driver_Value struct { |
| 428 | IValue interface{} |
| 429 | } |
| 430 | |
| 431 | // _database_sql_driver_ValueConverter is an interface wrapper for ValueConverter type |
| 432 | type _database_sql_driver_ValueConverter struct { |
| 433 | IValue interface{} |
| 434 | WConvertValue func(v any) (driver.Value, error) |
| 435 | } |
| 436 | |
| 437 | func (W _database_sql_driver_ValueConverter) ConvertValue(v any) (driver.Value, error) { |
| 438 | return W.WConvertValue(v) |
| 439 | } |
| 440 | |
| 441 | // _database_sql_driver_Valuer is an interface wrapper for Valuer type |
| 442 | type _database_sql_driver_Valuer struct { |
| 443 | IValue interface{} |
| 444 | WValue func() (driver.Value, error) |
| 445 | } |
| 446 | |
| 447 | func (W _database_sql_driver_Valuer) Value() (driver.Value, error) { return W.WValue() } |