| 178 | Base = cls.DeclarativeBasic |
| 179 | |
| 180 | class Array(ComparableEntity, Base): |
| 181 | __tablename__ = "array" |
| 182 | |
| 183 | id = Column( |
| 184 | sa.Integer, primary_key=True, test_needs_autoincrement=True |
| 185 | ) |
| 186 | array = Column(ARRAY(Integer), default=[]) |
| 187 | array0 = Column(ARRAY(Integer, zero_indexes=True), default=[]) |
| 188 | first = index_property("array", 0) |
| 189 | first0 = index_property("array0", 0, onebased=False) |
| 190 | |
| 191 | def test_query(self): |
| 192 | Array = self.classes.Array |