Commit Graph

524 Commits

Author SHA1 Message Date
M1ha
3bc5f27cda 1) Unified QuerySet filter and exclude methods,
so both can load *q and **kwargs at the same time
 and accept prewhere flag
2) Added ability to add prewhere clause
 in QuerySet.filter() and QuerySet.exclude() methods
3) Added ability to check, if Q() object is empty (including bool check)
4) Refactored QuerySet.as_sql() method:
 + don't add GROUP BY and WHERE if it's not needed
 + ability to add PREWHERE condition
 + Common style of adding optional query parts
2018-12-08 11:40:05 +05:00
M1ha
7f38f8c654 Added fina() QuerySet method
Added tests for ite
Not tested in case of https://github.com/Infinidat/infi.clickhouse_orm/issues/93
2018-12-02 12:14:19 +05:00
P R
75f0ad9882
Update database.py
Added connection timeout parameter
2018-11-28 00:09:53 +07:00
Itai Shirav
41cf4c3a79 Finished Release v1.0.3 2018-10-24 16:35:14 +03:00
Itai Shirav
5acb4882a8 Releasing v1.0.3 2018-10-24 16:34:53 +03:00
Itai Shirav
962a1673f9 Functions WIP 2018-10-24 16:30:37 +03:00
Itai Shirav
bfceeb56e5 re-enable decimals tests 2018-10-15 09:00:57 +03:00
Itai Shirav
475492a65f support decimal fields (fix test) 2018-10-14 12:26:45 +03:00
Itai Shirav
4f4ce697e4 Fix description of ALIAS fields 2018-10-14 09:51:04 +03:00
Itai Shirav
f24749112e support decimal fields 2018-10-14 09:26:07 +03:00
Itai Shirav
658c7b42ee Bug fix: wrong parentheses when building queries using Q objects 2018-10-13 19:49:12 +03:00
Itai Shirav
f2a731711d Bug fix: QuerySet.count() ignores slicing 2018-10-13 19:29:36 +03:00
Itai Shirav
928e41b82c Finished Release v1.0.2 2018-08-21 16:01:35 +03:00
Itai Shirav
298927d631 Releasing v1.0.2 2018-08-21 16:01:10 +03:00
Itai Shirav
a0e602f0b2 Update changelog 2018-08-19 18:38:30 +03:00
Itai Shirav
cd2bd6b9e1 Merge branch 'kalombos-filtering_null' into develop 2018-08-19 18:36:51 +03:00
Itai Shirav
6416b25818 Merge branch 'filtering_null' of https://github.com/kalombos/infi.clickhouse_orm into kalombos-filtering_null 2018-08-19 18:36:08 +03:00
Itai Shirav
84fc270e0e Replace the deprecated assertEquals with assertEqual 2018-08-19 18:22:22 +03:00
Itai Shirav
44d3dcee34 Added Database.does_table_exist method 2018-08-19 18:20:17 +03:00
Itai Shirav
378cae88bc fix test for python 3 2018-08-19 18:19:01 +03:00
Itai Shirav
acf2f7a189 Check for database existence, to allow delayed creation 2018-08-19 18:02:37 +03:00
Itai Shirav
32c77ab190 Include alias and materialized fields in queryset results 2018-08-19 16:18:15 +03:00
Itai Shirav
238fd11d6b Finished Release v1.0.1 2018-08-13 08:46:10 +03:00
Itai Shirav
2034b970b9 Releasing v1.0.1 2018-08-13 08:44:26 +03:00
Itai Shirav
0433ac1087 docs 2018-08-13 08:41:02 +03:00
Itai Shirav
be1cbdee76 Add validation of array field's inner field 2018-08-13 08:36:01 +03:00
Itai Shirav
cec543eee7 Test migration of a new array field 2018-08-13 08:35:26 +03:00
fanchi
5059902947 Added a test for isinstance and fixed a bug 2018-07-05 16:36:51 +03:00
fanchi
3fa18d32d9 Add method to check instance types of field and its inner fields 2018-07-04 18:32:08 +03:00
fanchi
a836031d36 Trivial fix nullable field disregard extra_null_values 2018-07-02 10:47:36 +03:00
kalombo
a32453394a add support for Filtering null values 2018-06-26 17:20:11 +05:00
Itai Shirav
50550ac6b6 remove buildout.wheel extension 2018-06-25 12:34:42 +03:00
Itai Shirav
dc890dde5e Finished Release v1.0.0 2018-06-11 13:33:49 +03:00
Itai Shirav
0ffafe3f62 Releasing v1.0.0 2018-06-11 13:33:17 +03:00
Itai Shirav
86f05a0c23 Python 3 compatibility 2018-06-10 16:17:35 +03:00
Itai Shirav
658d1da5ce Update docs 2018-06-10 14:30:40 +03:00
Itai Shirav
d7382e1ce2 fix field name parsing when field contains double underscore #69 2018-06-10 14:27:51 +03:00
Itai Shirav
3cd3e1ec83 Merge branch 'vv-p-add-timezone-breaker' into develop 2018-06-10 14:09:15 +03:00
Itai Shirav
e0b125f6a6 Merge branch 'add-timezone-breaker' of https://github.com/vv-p/infi.clickhouse_orm into vv-p-add-timezone-breaker 2018-06-10 14:08:20 +03:00
Itai Shirav
2bca8b4fb8 Improve creation time of model instances by keeping a dictionary of default values 2018-05-14 07:37:56 -04:00
Itai Shirav
ab0755ad90 - Rename Model.system to Model._system to prevent collision with a column that has the same name
- Rename `Model.readonly` to `Model._readonly` to prevent collision with a column that has the same name
- The `field_names` argument to `Model.to_tsv` is now mandatory
2018-05-14 07:09:57 -04:00
Itai Shirav
1bd3e63cd4 minor improvements in error handling and testing 2018-05-10 15:24:38 +03:00
Понаревский Владимир
c20846122f Fix after review 2018-05-08 17:24:27 +03:00
Понаревский Владимир
793726adb2 Fix after review 2018-05-08 16:41:50 +03:00
Понаревский Владимир
a5c93dc176 Add disabler for the timezone getting 2018-05-08 13:19:45 +03:00
Itai Shirav
2499a3f42a Update docs 2018-05-06 14:30:29 +03:00
M1ha
eb15dd65ec Added custom partitioning to all MergeTree family engines 2018-04-24 15:19:05 +05:00
Itai Shirav
e4f0c5b1dd Update docs 2018-04-22 09:03:31 +03:00
Itai Shirav
3976366913 Update docs 2018-04-21 15:29:29 +03:00
Itai Shirav
20e609f952 Update docs 2018-04-21 15:23:00 +03:00