django-clickhouse/tests/clickhouse_models.py

17 lines
421 B
Python
Raw Normal View History

from django_clickhouse.clickhouse_models import ClickHouseModel
from django_clickhouse.engines import MergeTree
from infi.clickhouse_orm import fields
from tests.models import TestModel
class TestClickHouseModel(ClickHouseModel):
django_model = TestModel
sync_delay = 5
2018-11-15 15:37:58 +03:00
id = fields.Int32Field()
created_date = fields.DateField()
2018-11-15 15:37:58 +03:00
value = fields.Int32Field()
engine = MergeTree('created_Date')