Commit Graph

198 Commits

Author SHA1 Message Date
Dzianis Sivets
9b7e7a179e NullableField of ArrayField 2017-06-16 20:38:01 +03:00
Dzianis Sivets
1b0ea035b8 Nullable fields support 2017-06-16 20:37:37 +03:00
Itai Shirav
d02d6b14eb - Added ne and not_in queryset operators
- Querysets no longer have a default order when `order_by` is not called
- Added `autocreate` flag to database initializer
- Fix for SELECT FROM JOIN (#37)
2017-06-15 12:19:17 +03:00
Ivan Ladelshchikov
fcb8196d3d fix unicode params for Py2 2017-06-06 20:16:56 +05:00
Marsel
1ff82a57e1 Fix "NameError: name 'unicode' is not defined" in python3 2017-05-14 23:11:58 +03:00
Itai Shirav
6301ab468e fix queryset problem with non-ascii chars 2017-05-05 15:39:01 +03:00
Itai Shirav
b3437dae7e Add a couple of small tests 2017-05-05 15:22:16 +03:00
Itai Shirav
3f8434fe50 rename QuerySet.query to as_sql 2017-05-05 15:21:55 +03:00
Itai Shirav
be474b3aed Add simple engines: TinyLog, Log, Memory 2017-04-28 18:36:40 +03:00
Itai Shirav
64bf3b423e python 3 compatibility 2017-04-28 18:18:23 +03:00
Itai Shirav
abbe334875 queryset tests 2017-04-26 15:46:34 +03:00
Itai Shirav
dbea017d60 Add support for FixedString fields 2017-04-25 16:03:52 +03:00
Itai Shirav
2b8c0b6c38 Do not send readonly=1 when connection is already in readonly mode (this causes a database error) 2017-04-25 08:39:24 +03:00
Itai Shirav
7c26c4da5a Refactor tests with data 2017-04-24 13:14:13 +03:00
Itai Shirav
04340884be Add tests for engine types 2017-04-04 15:21:08 +03:00
Itai Shirav
e1ef96f05b Add a test for "with totals" 2017-04-04 14:41:23 +03:00
Itai Shirav
015a4512e7 Fix datetime tests 2017-04-04 12:41:18 +03:00
Itai Shirav
1d573ded96 Merge branch 'develop' of https://github.com/emakarov/infi.clickhouse_orm into emakarov-develop
# Conflicts:
#	src/infi/clickhouse_orm/models.py
#	tests/test_database.py
2017-02-19 09:12:00 +02:00
Itai Shirav
58e322cc52 fix test 2017-02-19 09:04:32 +02:00
M1ha
6f975a801c 1) Added get_database method to Model
2) Added some assertions in tests for adding _database attribute in selects and inserts
3) database.insert() method sets _database
2017-02-19 09:04:32 +02:00
M1ha
f3e75cfae3 1) Removed database params for working with SystemPart operations
2) Added _database attribute to each model, got through select
2017-02-19 09:04:32 +02:00
M1ha
14f2ab78b5 Fixed:
1) Added partition working to readme
2) replaced insertable_only parameter with include_readonly
3) Added empty string alias and materialized field control
2017-02-19 09:04:32 +02:00
M1ha
5f2195f87f 1) Replaced is_insertable() field mehtod with readonly property (unification with model and tables)
2) Method SystemPart.all() was replaced with get()
3) Added conditions parameter to SystemPart.get() and SystemPart.get_active() methods.
2017-02-19 09:02:56 +02:00
M1ha
58b7a9aeac 1) Added to_dict model method
2) Fixed bug in test_freeze cleaning, if backups don't contain all directory names (e. g. 1, 2, 3, 6, 7 - count=5, created_backup=8, not 6)
2017-02-19 09:01:33 +02:00
M1ha
db61efd4cc 1) Added readonly models
2) Added SystemPart models in order to execute partition operations
2017-02-19 09:01:33 +02:00
emakarov
77b33c0ed4 test added. engine sql query fix to support special characters 2017-02-08 23:21:48 +03:00
Itai Shirav
dfd4d09e70 DateField.to_python() - handle timezone-aware datetime values correctly 2017-02-08 15:19:39 +02:00
Itai Shirav
5b03e66048 Send readonly=1 when database is created in readonly mode 2017-02-07 16:36:41 +02:00
Itai Shirav
f29d737f29 Always keep datetime fields in UTC internally, and convert server timezone to UTC when parsing query results. 2017-02-07 15:25:16 +02:00
M1ha
2509b5b2e3 Rewritten Alias and Materialized fields to field parameters like default. 2017-01-27 10:46:12 +05:00
M1ha
ca341ea997 Added MaterializedField and AliasField 2017-01-26 15:43:41 +05:00
Itai Shirav
ce8c77684e Allow passing -1 as the page number (returning the last page) 2017-01-25 15:10:14 +02:00
Itai Shirav
685e3dffe9 Bug fix - parse_array fails on int arrays 2016-09-15 12:03:41 +03:00
Itai Shirav
13bd956fc6 Add support for array fields 2016-09-01 15:25:48 +03:00
Itai Shirav
8fc3a31d4b Add support for enum fields 2016-08-31 15:43:06 +03:00
Itai Shirav
071bcd283d Add Python 3 support 2016-08-01 10:28:10 +03:00
Itai Shirav
f29b3ea696 Add $table and $db placeholders 2016-07-11 16:17:49 +03:00
Itai Shirav
87ee685c8b migrations support 2016-07-05 16:20:18 +03:00
Itai Shirav
b4f4af8c75 support pagination 2016-07-03 15:39:08 +03:00
Itai Shirav
c6c9f13e51 Support dashes and other special characters in database names and table names 2016-06-30 11:36:54 +03:00
Itai Shirav
6e786d75e9 Support model class inheritance 2016-06-29 14:52:55 +03:00
Itai Shirav
92ea9d413e support ad-hoc models 2016-06-26 15:11:16 +03:00
Itai Shirav
9262f0eae6 add database.select and field range checks 2016-06-23 19:05:44 +03:00
Itai Shirav
92e8b8259f better validation of keyword arguments in model constructor 2016-06-23 18:34:52 +03:00
Itai Shirav
b08f1b3688 model field conversion on assignment 2016-06-23 18:24:20 +03:00
Itai Shirav
25e85adc0d add database.insert and database.count 2016-06-23 17:35:17 +03:00
Itai Shirav
571ea8b6e5 rename project 2016-06-23 15:46:11 +03:00
Itai Shirav
b1174f09ea Initial commit of database class 2016-06-23 15:10:49 +03:00