(self, text, persisted)
| 1541 | id_="iaa", |
| 1542 | ) |
| 1543 | def test_column_computed(self, text, persisted): |
| 1544 | m = MetaData() |
| 1545 | kwargs = {"persisted": persisted} if persisted != "ignore" else {} |
| 1546 | t = Table( |
| 1547 | "t", |
| 1548 | m, |
| 1549 | Column("x", Integer), |
| 1550 | Column("y", Integer, Computed("x + 2", **kwargs)), |
| 1551 | ) |
| 1552 | self.assert_compile( |
| 1553 | schema.CreateTable(t), |
| 1554 | "CREATE TABLE t (x INTEGER, y INTEGER GENERATED " |
| 1555 | "ALWAYS AS (x + 2)%s)" % text, |
| 1556 | ) |
| 1557 | |
| 1558 | def test_column_computed_persisted_true(self): |
| 1559 | m = MetaData() |
nothing calls this directly
no test coverage detected