Serhii Charykov
4661459ddd
Migrate from aioredis to redis-py with asyncio support ( #233 )
...
* Migrate from aioredis to redis with asyncio support
Add test for redis type
Fix imports from wrong module (for tests_sync)
* fixing merge conflicts and up to dating the lock file
Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
2 years ago
Serhii Charykov
85540c02bd
Implement temporary workaround from unasync package
2 years ago
Serhii Charykov
490fcec1a7
Fix DeprecationWarning '@pytest.fixture'
2 years ago
Simon Prickett
274ff788b1
Adds all_pks() method and test.
2 years ago
Simon Prickett
6d009a0d72
Fixed linter errors, refactored delete.
2 years ago
Simon Prickett
885b24b35b
Adds delete function at a class level.
2 years ago
Andrew Brookins
e4e3583006
Document some possible error messages
3 years ago
Andrew Brookins
269d44c26e
Final docs push
3 years ago
Andrew Brookins
5ab53c916c
Support both sync and asyncio uses
3 years ago
Andrew Brookins
ca6ae7d6e9
Merge branch 'main' into asyncio
3 years ago
Andrew Brookins
2b1994b98b
Disable features without required Redis modules
...
Some features, like querying and embedded models, require
either the RediSearch or RedisJSON modules running in Redis.
Without these modules, using these features would result
in inscrutable errors.
We now disable some tests if the Redis module required for the
test is not found in the Redis instance the tests are using,
and raise errors or log messages if the same is true during
execution of HashModel and JsonModel.
3 years ago
Andrew Brookins
09c91fb756
Add building, linting for PyPI upload
3 years ago
Andrew Brookins
c9967b0d40
Rename to redis_om
3 years ago
Andrew Brookins
b2c2dd9f6f
WIP on async - test failure due to closed event loop
3 years ago
Andrew Brookins
0f9f7aa868
Attempt run-time change of type annotations on model fields
3 years ago
Andrew Brookins
7155b9af35
Lint
3 years ago
Andrew Brookins
2ffd4e6f5a
Run tests across multiple cores/CPUs
3 years ago
Andrew Brookins
d2fa4c586f
Add Makefile, black, reformat with black
3 years ago
Andrew Brookins
2bd71ff087
Rename orm module to om
3 years ago
Andrew Brookins
c51a071982
Tests & errors for preview list limitations
3 years ago
Andrew Brookins
389a6ea878
Add support for IN queries
3 years ago
Andrew Brookins
bb08fb9eb5
Use a default value for the "embedded" config
3 years ago
Andrew Brookins
e59e210834
Avoid adding same parent to attr multiple times
3 years ago
Andrew Brookins
ae8baa0339
Fix JSON paths for arrays
3 years ago
Andrew Brookins
5d05de95f8
Broken schema generation
3 years ago
Andrew Brookins
8f32b359f0
Handle TAG queries that include the separator
3 years ago
Andrew Brookins
b46408ccd2
WIP on JSON tests
3 years ago
Andrew Brookins
976fdf3ad4
Generate a seemingly correct schema for JSON models
3 years ago
Andrew Brookins
a788cbedbb
Remove unique, unsued migration validation
3 years ago
Andrew Brookins
0990c2e1b4
Add basic migrations, query expression resolver
3 years ago
Andrew Brookins
afe05fb7dd
Remove reference to hashes in JSON example
3 years ago
Andrew Brookins
a984bc21cc
Tidy up TODO comments on filter/get API
3 years ago
Andrew Brookins
06c082e230
Rename embedded model tests
3 years ago
Andrew Brookins
87b96ffb20
Test for embedded JSON models
3 years ago
Andrew Brookins
59dced95a6
Basic hash and JSON models
3 years ago