Commit Graph

340 Commits

Author SHA1 Message Date
M1ha
db61efd4cc 1) Added readonly models
2) Added SystemPart models in order to execute partition operations
2017-02-19 09:01:33 +02:00
M1ha
dc14d523c1 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-09 17:12:28 +05:00
M1ha
59ff18f09a Edited docs (SystemPart) 2017-02-09 16:52:19 +05:00
M1ha
ff04ab4db8 1) Removed database params for working with SystemPart operations
2) Added _database attribute to each model, got through select
2017-02-09 16:50:06 +05:00
M1ha
b6967901fa Moved code example to another section 2017-02-09 09:50:34 +05: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
M1ha
683e1acc6a 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-08 15:29:24 +05:00
M1ha
80eddeb293 Fixed bugs, connected to merge 2017-02-08 11:37:50 +05:00
M1ha
463ac2b786 Merge branch 'develop' of https://github.com/Infinidat/infi.clickhouse_orm into develop
# Conflicts:
#	README.rst
#	src/infi/clickhouse_orm/models.py
2017-02-08 11:09:30 +05:00
M1ha
907cff9704 Corrected links and code 2017-02-08 11:05:19 +05:00
M1ha
5e63e813e0 Corrected tables in docs 2017-02-08 10:59:36 +05:00
M1ha
0ae76edc5e Corrected docs 2017-02-08 10:56:36 +05:00
M1ha
64435c77fa 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-08 10:40:14 +05:00
emakarov
86a3fec143 cleaner code for Buffer engine and Buffer Model class 2017-02-07 21:32:51 +03:00
emakarov
e2e02ab029 Conflict resolved 2017-02-07 21:19:23 +03:00
emakarov
8d23c18714 Merge pull request #2 from Infinidat/develop
Merge of main develop into forked develop
2017-02-07 21:15:20 +03:00
emakarov
e599b6b309 README extended 2017-02-07 20:56:13 +03:00
emakarov
427088d87f README extended 2017-02-07 20:54:39 +03:00
emakarov
d19787cb9f Fix for create_table_sql for Buffer table 2017-02-07 20:41:26 +03:00
emakarov
c9697de56c Buffer engine initial commit 2017-02-07 19:19:50 +03:00
emakarov
e37a4cebb1 Merge pull request #1 from Infinidat/master
Master
2017-02-07 18:37:10 +03:00
Itai Shirav
dec45a0436 Document the Database.readonly option 2017-02-07 17:24:54 +02:00
Itai Shirav
b95046893b Add documentation about timezone handling 2017-02-07 17:14:18 +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
f22073e2e6 Added change log 2017-02-07 16:22:04 +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
Itai Shirav
a73a69ef52 TRIVIAL add note about coverage 2017-02-07 12:21:16 +02:00
Itai Shirav
6c4640bb24 TRIVIAL code style 2017-02-07 12:20:47 +02:00
Itai Shirav
4b086d5b21 Merge branch 'carrotquest-develop' into develop 2017-02-07 08:21:38 +02:00
M1ha
9f81ed27c6 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-01-31 18:19:58 +05:00
M1ha
b9fce94b04 1) Added readonly models
2) Added SystemPart models in order to execute partition operations
2017-01-31 12:44:02 +05:00
M1ha
2509b5b2e3 Rewritten Alias and Materialized fields to field parameters like default. 2017-01-27 10:46:12 +05:00
M1ha
41e73a5cbb Forgot readme 2017-01-26 15:48:09 +05:00
M1ha
ca341ea997 Added MaterializedField and AliasField 2017-01-26 15:43:41 +05:00
Itai Shirav
01cd88a938 TRIVIAL 2017-01-25 16:41:01 +02: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
9f2619a807 Accept datetime values for date fields (by Zloool) 2017-01-25 14:48:07 +02:00
Itai Shirav
cce85beeef Move database creation into a separate method 2017-01-25 14:40:03 +02:00
Itai Shirav
48d7dfe661 Explain how table names are determined 2017-01-25 14:39:41 +02:00
ishirav
3b82f31ec2 Merge pull request #7 from tswr/master
Fixing Database class to allow readonly mode
2016-11-09 17:08:29 +02:00
tswr
c492d419cc Fixing Database class to allow readonly mode 2016-11-02 14:28:00 +03:00
Itai Shirav
982b87dd1c Finished Release v0.7.1 2016-09-29 11:36:44 +03:00
Itai Shirav
b2cf8f4245 Fixes by tsionyx 2016-09-29 11:24:22 +03:00
Itai Shirav
685e3dffe9 Bug fix - parse_array fails on int arrays 2016-09-15 12:03:41 +03:00
Itai Shirav
66f8e8a4ae Performance improvements when inserting
escape - check first if there are any special chars before replacing
send lines in batches
Use list comprehension in to_tsv
2016-09-15 11:32:07 +03:00
Itai Shirav
6221fb4143 Finished Release v0.7.0 2016-09-01 16:15:50 +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
c0af06875c Finished Release v0.6.3 2016-08-01 10:29:26 +03:00