Use GraphQL and SQL Alchemy for efficient database access.
Project description
Graphene Sql Alchemy Optmizer
(WIP) inspired by https://github.com/tfoxy/graphene-django-optimizer
Uses graphql schema to generate efficient database access using sql alchemy joins
install
pip install graphene_sa_optimizer
How to use
from graphene_sa_optimizer import get_optimized_options
# This will generate all our options
# to optimize this query
get_optimized_options(ModelClass, info)
# pass those optimizations into our query
query.options(*get_optimized_options)
Setup for dev
- Install
pipenv
- run
pipenv install
- run
pipenv shell
- run
pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for graphene_sa_optimizer-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c09241940b7cb2e7ef6ec10724bdaf9243eb1e2089f0552e75e752e8bd9bb3d |
|
MD5 | 3eafb7ab1bff66a06c84745dca47c3c3 |
|
BLAKE2b-256 | 08c8eb3ce9ca85d1b2246421aac25521cdebd85c80159fa5159c8a79864f9edd |