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 and
# pass those optimizations into our query
query.options(*get_optimized_options(ModelClass, info))

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.5.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file graphene_sa_optimizer-0.0.5.tar.gz.

File metadata

File hashes

Hashes for graphene_sa_optimizer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4a8baaef3f027bfdbe84c579f8354ac31add375978354bfe9c1e56dba27d4075
MD5 38991e62e57d46649611e11e216b5e1f
BLAKE2b-256 7cf8918ce255c33570451036e8250944229c15677acc8e26c843e872094bb040

See more details on using hashes here.

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