Commit Graph

97 Commits

Author SHA1 Message Date
M1ha
27217102da Fixed bugs, connected to merge 2017-02-19 09:04:05 +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
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
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
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
Itai Shirav
6c4640bb24 TRIVIAL code style 2017-02-07 12:20:47 +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
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
tswr
c492d419cc Fixing Database class to allow readonly mode 2016-11-02 14:28:00 +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
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
Ivan Ladelshchikov
e7d0668418 use self variables to fix undefined behaviour 2016-07-28 07:43:10 +03:00
Itai Shirav
ffa99f3f10 cache ad hoc models 2016-07-11 17:11:56 +03:00
Itai Shirav
f29b3ea696 Add $table and $db placeholders 2016-07-11 16:17:49 +03:00
Itai Shirav
52e9d30c5c stream only SELECTs, to prevent "connection reset by peer" errors 2016-07-10 16:40:47 +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
a3bd212133 Simplify conversion of int and float fields 2016-06-30 16:17:53 +03:00
Itai Shirav
4efdcda97b Fix bug in date parsing 2016-06-30 16:12:02 +03:00
Itai Shirav
9489115d6e Fix bug in datetime parsing 2016-06-30 12:11:47 +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
5b033a1e1b fix int ranges 2016-06-26 17:41:17 +03:00
Itai Shirav
64f8cde1c0 documentation 2016-06-26 16:52:25 +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
Itai Shirav
4da45b0be5 Getting started 2016-06-23 14:11:20 +03:00
Itai Shirav
2f99d58a61 added all project files 2016-06-23 14:05:07 +03:00