| 24 | Base = declarative_base() |
| 25 | |
| 26 | class A(Base): |
| 27 | __tablename__ = "a" |
| 28 | id = Column("id", Integer, primary_key=True) |
| 29 | array = Column("_array", ARRAY(Integer), default=[]) |
| 30 | first = index_property("array", 0) |
| 31 | tenth = index_property("array", 9) |
| 32 | |
| 33 | a = A(array=[1, 2, 3]) |
| 34 | eq_(a.first, 1) |