=========================================================================== Common APIs for CRUD. =========================================================================== Insert inserts one or multiple records into table. The data can be a map, struct, or slice of maps/structs. The optional batch
(ctx context.Context, table string, data any, batch ...int)
| 97 | // The data can be a map, struct, or slice of maps/structs. |
| 98 | // The optional batch parameter specifies the batch size for bulk inserts. |
| 99 | Insert(ctx context.Context, table string, data any, batch ...int) (sql.Result, error) |
| 100 | |
| 101 | // InsertIgnore inserts records but ignores duplicate key errors. |
| 102 | // It works like Insert but adds IGNORE keyword to the SQL statement. |
no outgoing calls