class TestTable(self.base):
            date = Column(types.Date, primary_key=True)
            x = Column(types.Int32)

            __table_args__ = (engines.MergeTree(ttl=[
                ttl_delete(date + func.toIntervalDay(1)),
                ttl_to_disk(date + func.toIntervalDay(1), 'hdd'),
                ttl_to_volume(date + func.toIntervalDay(1), 'slow'),
            ], ), )
Пример #2
0
        class TestTable(self.base):
            date = Column(types.Date, primary_key=True)
            x = Column(types.Int32)

            __table_args__ = (
                engines.MergeTree(
                    ttl=ttl_delete(date + func.toIntervalDay(1)),
                ),
            )