Skip to main content

classic-db-pool — это библиотека для управления соединениями с базой данных эффективным способом. Она позволяет создавать пул соединений с базой данных, который может использоваться несколькими запросами или процессами одновременно. Это гарантирует, что ваше приложение всегда имеет доступ к готовому к использованию соединению без необходимости ожидания первоначальной настройки соединения каждый раз.

Вклад

Этот проект является форком проекта Embrace.

Установка

Для установки classic-db-pool вы можете использовать pip:

pip install classic-db-pool

Использование

Вот несколько примеров использования classic-db-pool.

from classic.db_pool import ConnectionPool
import pymssql


pool = ConnectionPool(
    lambda: pymssql.connect(
        server='server',
        database='database',
        user='user',
        password='password',
    ),
    limit=1,
)


with pool.connect() as conn:
    conn.cursor().execute('SQL query')

Metadata

Release files for classic-db-pool 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for classic-db-pool 1.2.0
File Size Uploaded Provenance
classic_db_pool-1.2.0.tar.gz 9.8 kB Without provenance Details

Release files / classic_db_pool-1.2.0.tar.gz

Download URL classic_db_pool-1.2.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f498fa91c5b1432735e1a03185a79f316eba101eafe130a3d1a22b073e5cdf3c
BLAKE2b-256 checksum
How to use checksums
931c3f3090e6a1bd94304a708189871d85983e4a138fb6e429ef75216040c815
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for classic-db-pool 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page