معرفی شرکت ها


django-pgconnection-1.0.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Route postgres connections and hook into cursor execution
ویژگی مقدار
سیستم عامل -
نام فایل django-pgconnection-1.0.3
نام django-pgconnection
نسخه کتابخانه 1.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Wes Kendall
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/Opus10/django-pgconnection
آدرس اینترنتی https://pypi.org/project/django-pgconnection/
مجوز BSD-3-Clause
django-pgconnection ################### ``django-pgconnection`` provides primitives for overriding Postgres connection and cursor objects, making it possible to do the following: 1. Hook into SQL generation. For example, it is not possible to log every time a SQL statement is executed in Django or annotate SQL with comments so that additional metadata is logged when executing queries. The `pgconnection.pre_execute_hook` context manager allows one to hook into SQL before it is executed. 2. Route database traffic to a different database. Although Django provides the ability to construct custom database routers, routing to a different database has to be instrumented throughout code and can be tedious and error prone. The `pgconnection.route` context manager can route any database operations to a different database, even if it's an external management command that has not been instrumented to use a different database. The `documentation <https://django-pgconnection.readthedocs.io/>`_ has examples of how to use ``django-pgconnection``. Documentation ============= `View the django-pgconnection docs here <https://django-pgconnection.readthedocs.io/>`_. Installation ============ Install django-pgconnection with:: pip3 install django-pgconnection After this, add ``pgconnection`` to the ``INSTALLED_APPS`` setting of your Django project. In order to use connection routing and hooks, one must configure the ``DATABASES`` setting in ``settings.py`` like so:: DATABASES = pgconnection.configure({ 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'mydatabase', } }) Contributing Guide ================== For information on setting up django-pgconnection for development and contributing changes, view `CONTRIBUTING.rst <CONTRIBUTING.rst>`_. Primary Authors =============== - @wesleykendall (Wes Kendall)


نیازمندی

مقدار نام
>=2 django
>=4) importlib_metadata


زبان مورد نیاز

مقدار نام
>=3.7.0,<4 Python


نحوه نصب


نصب پکیج whl django-pgconnection-1.0.3:

    pip install django-pgconnection-1.0.3.whl


نصب پکیج tar.gz django-pgconnection-1.0.3:

    pip install django-pgconnection-1.0.3.tar.gz