(implicit_returning)
| 568 | @testing.fixture |
| 569 | def table_fixture(self, metadata, connection, implicit_returning): |
| 570 | def go(implicit_returning): |
| 571 | cartitems = Table( |
| 572 | "cartitems", |
| 573 | metadata, |
| 574 | Column( |
| 575 | "cart_id", |
| 576 | Integer, |
| 577 | normalize_sequence(config, Sequence("cart_id_seq")), |
| 578 | primary_key=True, |
| 579 | autoincrement=False, |
| 580 | ), |
| 581 | Column("description", String(40)), |
| 582 | Column("createdate", sa.DateTime()), |
| 583 | implicit_returning=implicit_returning, |
| 584 | ) |
| 585 | |
| 586 | # a little bit of implicit case sensitive naming test going on here |
| 587 | Manager = Table( |
| 588 | "Manager", |
| 589 | metadata, |
| 590 | Column( |
| 591 | "obj_id", |
| 592 | Integer, |
| 593 | normalize_sequence(config, Sequence("obj_id_seq")), |
| 594 | ), |
| 595 | Column("name", String(128)), |
| 596 | Column( |
| 597 | "id", |
| 598 | Integer, |
| 599 | normalize_sequence( |
| 600 | config, Sequence("Manager_id_seq", optional=True) |
| 601 | ), |
| 602 | primary_key=True, |
| 603 | ), |
| 604 | implicit_returning=implicit_returning, |
| 605 | ) |
| 606 | metadata.create_all(connection) |
| 607 | return Manager, cartitems |
| 608 | |
| 609 | return go |
| 610 |
nothing calls this directly
no test coverage detected