| 432 | not_in(sql.column("content_type"), row._mapping) |
| 433 | |
| 434 | def _pickle_row_data(self, connection, use_labels): |
| 435 | users = self.tables.users |
| 436 | |
| 437 | connection.execute( |
| 438 | users.insert(), |
| 439 | [ |
| 440 | {"user_id": 7, "user_name": "jack"}, |
| 441 | {"user_id": 8, "user_name": "ed"}, |
| 442 | {"user_id": 9, "user_name": "fred"}, |
| 443 | ], |
| 444 | ) |
| 445 | |
| 446 | result = connection.execute( |
| 447 | users.select() |
| 448 | .order_by(users.c.user_id) |
| 449 | .set_label_style( |
| 450 | LABEL_STYLE_TABLENAME_PLUS_COL |
| 451 | if use_labels |
| 452 | else LABEL_STYLE_NONE |
| 453 | ) |
| 454 | ).all() |
| 455 | return result |
| 456 | |
| 457 | @testing.variation("use_pickle", [True, False]) |
| 458 | @testing.variation("use_labels", [True, False]) |