(ctx context.Context)
| 171 | } |
| 172 | |
| 173 | func (g *g[T]) apply(ctx context.Context) *DB { |
| 174 | db := g.db |
| 175 | if !db.DryRun { |
| 176 | db = db.Session(&Session{NewDB: true, Context: ctx}).getInstance() |
| 177 | } |
| 178 | |
| 179 | for _, op := range g.ops { |
| 180 | db = op(db) |
| 181 | } |
| 182 | return db |
| 183 | } |
| 184 | |
| 185 | func (c *g[T]) Raw(sql string, values ...interface{}) ExecInterface[T] { |
| 186 | return execG[T]{g: &g[T]{ |