zeekay
dda3979851
rename: the ORM is ours — datastore_orm, not infi.clickhouse_orm
...
This is our fork, so it should read like it. `import datastore_orm` instead of
`from infi.clickhouse_orm import ...`: `infi` was the original vendor's org
namespace, and carrying someone else's org name through every import in the
consuming codebase is not a fork, it is a vendored copy that never got renamed.
The `infi` namespace package is gone entirely (src/infi/__init__.py with it),
the distribution is `datastore-orm`, and the metadata points at Hanzo rather
than at the upstream repo and author.
NOT renamed, deliberately: the migration history tables are still
`infi_clickhouse_orm_migrations`. That name is persisted state — 448 rows in
production key off it — so changing it is a data migration, not a rename. Doing
it carelessly reproduces the exact failure this fork just hit, where a package
rename orphaned the history and silently blocked every migration.
2026-07-26 08:44:11 -07:00
Itai Shirav
26c605ed14
Remove __future__
2020-07-14 22:01:32 +03:00
Itai Shirav
6996411e4e
Fix tests that fail on older ClickHouse versions
2020-05-29 01:59:07 +03:00
Itai Shirav
ef9243e358
Fix test in for latest clickhouse version
2020-05-28 18:17:52 +03:00
Itai Shirav
f8b9187a64
count() and paginate() - accept conditions as expressions and Q objects
2020-05-16 09:24:31 +03:00
Itai Shirav
e619717801
- improve imports
...
- documentation updates
2020-05-01 20:11:40 +03:00
Itai Shirav
7028c83a46
Merge branch 'develop' into funcs
...
# Conflicts:
# tests/test_database.py
2020-04-14 23:04:14 +03:00
Itai Shirav
5857a39890
Functions WIP
2020-04-14 23:03:11 +03:00
Itai Shirav
715d9d649b
Fix tests for ClickHouse v20.3
2020-03-16 10:24:02 +02:00
Itai Shirav
8157038d46
Support for function-based DEFAULT values, not only literals #36
2020-02-08 12:05:48 +02:00
Itai Shirav
ab64e89150
Minor fixes
2020-02-07 15:30:15 +02:00
Itai Shirav
d5c1c2e926
Support LowCardinality columns in ad-hoc queries
2019-12-12 22:09:35 +02:00
Itai Shirav
dcc43ad94f
Format of database error messages changed, update failing tests
2019-05-12 10:27:10 +03:00
Itai Shirav
faafe289e8
Fix pagination when asking for the last page on a query that matches no records
2019-02-26 22:58:59 +02:00
Itai Shirav
58973b1195
Update test to verify issue #89
2018-12-14 08:29:08 +02:00
Itai Shirav
f24749112e
support decimal fields
2018-10-14 09:26:07 +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
acf2f7a189
Check for database existence, to allow delayed creation
2018-08-19 18:02:37 +03:00
kalombo
a32453394a
add support for Filtering null values
2018-06-26 17:20:11 +05:00
Itai Shirav
86f05a0c23
Python 3 compatibility
2018-06-10 16:17:35 +03: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
Ivan Ladelshchikov and Itai Shirav
57112f9de6
add ServerError exception
2018-04-21 11:48:32 +03:00
M1ha
911af41ec1
Fixed https://github.com/Infinidat/infi.clickhouse_orm/issues/56 issue
2017-10-04 17:53:23 +05:00
Marsel and Itai Shirav
c4e60ca2a8
Include unicode_literals
2017-08-20 10:37:11 +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
Itai Shirav
b3437dae7e
Add a couple of small tests
2017-05-05 15:22:16 +03:00
Itai Shirav
7c26c4da5a
Refactor tests with data
2017-04-24 13:14:13 +03:00
Itai Shirav
e1ef96f05b
Add a test for "with totals"
2017-04-04 14:41:23 +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
M1ha and Itai Shirav
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 and Itai Shirav
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
5b03e66048
Send readonly=1 when database is created in readonly mode
2017-02-07 16:36:41 +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
071bcd283d
Add Python 3 support
2016-08-01 10:28:10 +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
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
b08f1b3688
model field conversion on assignment
2016-06-23 18:24:20 +03:00