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_joins
# This will generate all our options
# to optimize this query
get_optimized_joins(ModelClass, info)
# pass those optimizations into our query
query.options(*get_optimized_joins)
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e81f2fb0d6ec699a4619c4f9f768352149c5ab34923075ec1d416065f24fdd9 |
|
MD5 | 553f4c6540725bd907623b3d614c3f6b |
|
BLAKE2b-256 | bc643b5a145f85cb80656f9ff49f75fca01cd08266c4e2a187127e1788e08c5c |