Skip to main content

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

Build Status

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

graphene_sa_optimizer-0.0.4.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page