(names)
| 99 | # note this does a traversal + _clone of the InstrumentedAttribute |
| 100 | # for the first time ever |
| 101 | def query(names): |
| 102 | stmt = lambda_stmt( |
| 103 | lambda: select(User.name, Address.email_address) |
| 104 | .where(User.name.in_(names)) |
| 105 | .join(User.addresses) |
| 106 | ) + (lambda s: s.order_by(User.id, Address.id)) |
| 107 | |
| 108 | return s.execute(stmt) |
| 109 | |
| 110 | def go1(): |
| 111 | r1 = query(["ed"]) |
no test coverage detected