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
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b92432456d6368057ad391aba8c32872fd7af4d293f6921843f2df3dddd45f9c |
|
MD5 | 0befdb77b53508096ef9d67bee950c4a |
|
BLAKE2b-256 | 5a2e3616a6cdb8a24e27a4ca601d5182d7ae14e0f3ea77a735893ecd5f48255f |