django-clickhouse-backend
django-clickhouse-backend copied to clipboard
support for "prewhere"
hey, clickhouse lang has "prewhere" condition is there any way to set this condition using django-clickhouse-backend? and if there is no such method, is it possible to plan to add it for future releases?
To support this:
- Add
prewhereattribute toclickhouse_backend.models.sql.query.Queryas a container for prewhere clauses. - Add
prewheremethod toclickhouse_backend.models.query.QuerySetwhich updateclickhouse_backend.models.sql.query.Query.prewhere. - Generate prewhere SQL in
clickhouse_backend.models.sql.query.compiler.*Compiler.as_sql.
This may take some time to implement.