also looking at this
fix(orm)!: accept whereRaw bindings as one array
#1148
10 files
+742
-27
| @@ -67,7 +67,7 @@ const meta = buildSchemaMeta(models) | ||
| 67 | 67 | | `whereNull(col)` | WHERE IS NULL | `.whereNull('deleted_at')` | |
| 68 | 68 | | `whereNotNull(col)` | WHERE IS NOT NULL | `.whereNotNull('email')` | |
| 69 | 69 | | `whereColumn(a, op, b)` | Compare columns | `.whereColumn('a', '=', 'b')` | |
| 70 | | `whereRaw(sql)` | Raw WHERE clause | `.whereRaw('LOWER(name) = ?', ['john'])` | | |
| 70 | | `whereRaw(fragment)` | Raw WHERE clause (one fragment, no bindings) | ``.whereRaw(raw`LOWER(name) = ${name}`)`` | | |
| 71 | 71 | |
| 72 | 72 | ### JOIN Operations |
| 73 | 73 | |