(v: string)
| 124 | const getBob = () => |
| 125 | orm.findFirst("users", { where: (b) => b("id", "=", "bob") }); |
| 126 | const upsertBob = (v: string) => |
| 127 | orm.upsert("users", { |
| 128 | where: (b) => b("id", "=", "bob"), |
| 129 | create: { id: "bob", name: v }, |
| 130 | update: { name: v }, |
| 131 | }); |
| 132 | |
| 133 | lines.push("upsert bob: should be created as sad"); |
| 134 | await upsertBob("Bob is sad"); |