(self, text, persisted)
| 24 | id_="iaa", |
| 25 | ) |
| 26 | def test_column_computed(self, text, persisted): |
| 27 | m = MetaData() |
| 28 | kwargs = {"persisted": persisted} if persisted != "ignore" else {} |
| 29 | t = Table( |
| 30 | "t", |
| 31 | m, |
| 32 | Column("x", Integer), |
| 33 | Column("y", Integer, Computed("x + 2", **kwargs)), |
| 34 | ) |
| 35 | self.assert_compile( |
| 36 | CreateTable(t), |
| 37 | "CREATE TABLE t (x INTEGER, y INTEGER GENERATED " |
| 38 | "ALWAYS AS (x + 2)%s)" % text, |
| 39 | ) |
| 40 | |
| 41 | def test_other_options(self): |
| 42 | t = Table( |
nothing calls this directly
no test coverage detected