python

Locally

Introduction Requirements Addition to your code References Introduction This guide will help you add sqlcommenter to your Django applications running locally. Please see the reference for the fields added in the SQL comments google-cloud-sqlcommenter.Fields Requirements Steps Resource Django https://docs.djangoproject.com/en/stable/intro/ google-cloud-sqlcommenter https://pypi.org/project/google-cloud-sqlcommenter Django 2.X https://docs.djangoproject.com/en/stable/faq/install Python 3.X https://www.python.org/downloads/ Addition to your code Firstly, please install google-cloud-sqlcommenter. »

Django

Introduction Requirements Installation pip install Source Fields Sample log entry Expected fields References Introduction This package is in the form of Django middleware whose purpose is to augment a SQL statement right before execution, with information about the controller and user code to help with later making database optimization decisions, after those statements are examined from the database server’s logs. »

Google Cloud Platform

Introduction Requirements Addition to your code References Introduction This guide will help you add sqlcommenter to your Django applications running on Google Cloud Platform (GCP) Requirements Steps Resource Django on GCP https://cloud.google.com/python/django/ google-cloud-sqlcommenter https://pypi.org/project/google-cloud-sqlcommenter Django 2.X https://docs.djangoproject.com/en/stable/faq/install Python 3.X https://www.python.org/downloads/ Addition to your code Firstly, please install google-cloud-sqlcommenter. For any Django deployment, we can just edit our settings. »

Amazon Web Services

Introduction Requirements Addition to your code References Introduction This guide will help you add sqlcommenter to your Django applications running on Amazon Web Services (AWS) Requirements Steps Resource Python on AWS https://aws.amazon.com/getting-started/projects/deploy-python-application/ google-cloud-sqlcommenter https://pypi.org/project/google-cloud-sqlcommenter Django 2.X https://docs.djangoproject.com/en/stable/faq/install Python 3.X https://www.python.org/downloads/ Addition to your code For any Django deployment, we can just edit your settings. »

Flask

Introduction Using it Expected fields End to examples With psycopg2 With sqlalchemy References Introduction We provide Flask middleware which when coupled with: sqlcommenter-psycopg2 sqlcommenter-sqlalchemy allow us to retrieve the controller and route correlated with your source code in your web app. Using it Having successfully installed sqlcommenter-python’s sqlcommenter from sqlcommenter import FlaskMiddleware # Then in your flask programs just pass in the app FlaskMiddleware(app) Expected fields This Flask integration when coupled with compatible drivers will place the following fields »