Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Patch cqlengine: add async query functions #70

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

CharAct3
Copy link

@CharAct3 CharAct3 commented Jan 27, 2019

Add async functions for cqlengine:

# async functions for Model
Model.async_get()
Model.async_all()
Model.async_create()
obj.async_update()
obj.async_save()
obj.async_delete()

# async functions for QuerySet
Model.objects.async_get()
Model.objects.async_all()
Model.objects.async_create()
Model.objects(id=obj_id).async_update()
# also: Model.objects.filter().async_all()
#       Model.objects.if_not_exists().async_create()

WIP:

  • Add more unittests.
  • Update docs.

ref: #8.

@FedirAlifirenko
Copy link
Contributor

hi @CharAct3
Please rebase onto master to include .travis.yml changes if you are still interesting in passing CI steps.

@CharAct3
Copy link
Author

CharAct3 commented May 6, 2019

Hi @FedirAlifirenko
It seems the CI is still broken. The newest commit in master branch didn't pass CI steps: https://github.com/aio-libs/aiocassandra/runs/119188360

@hellysmile
Copy link
Member

Hey @CharAct3, thats looks really awesome!
Can we have a list what is not ported yet?

@FedirAlifirenko
Copy link
Contributor

Hi @CharAct3
It looks like the table system.size_estimates wasn't filled with expected data before test statement was executed. Your changes aren't the cause.
Hi @hellysmile
What do you think about adding of separate table with testdata for the tests purposes? Bcs all tests are passing when executing with tox at local env.

@CLAassistant

This comment has been minimized.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants