Skip to main content

Database connections pool extension from DBUtils

Project description

CDBUtils

CDBUtils is one extension copy from DBUtils 2.0.2

The CDBUtils home page can be found here:https://gitee.com/ctec/CDBUtils/

Extension parameter descriptions:

  • The current version 2.0.2 of CDBUtils only supports Python versions 3.5 to 3.9

  • test_on_borrow: check availability of the connection fetched from the pool (True = check,False = default = never check)

  • test_idle: Check connection availability on idle(True = check,False = default = never check)

  • validation_sql: the sql for validate the connection (default is “SELECT 1 FROM DUAL”)

  • idle_check_time: the seconds for Check and remove the idle connection interval, it will be start one Thread to check the idle connection in the pool, whenever “idleCheckTime” greater than 0 and “testIdle” is True,default is 60 seconds.

  • validate_timeout: the max seconds to execute the validation Sql,default is 1. if “validateTimeOut” Less than 1, it will Wait until to return the result

  • max_wait_time: the max wait time for fetch one connection from the pool, if “maxWaitTime” greater than 0 ,it will be start a lock for the function “connection “ with in the time, and throw one exception when the timeout, default is 5s

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

CDBUtils-2.0.3.tar.gz (46.4 kB view details)

Uploaded Source

File details

Details for the file CDBUtils-2.0.3.tar.gz.

File metadata

  • Download URL: CDBUtils-2.0.3.tar.gz
  • Upload date:
  • Size: 46.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for CDBUtils-2.0.3.tar.gz
Algorithm Hash digest
SHA256 48368ea22453d7ffe11d408798319104f8d518b7ed92920da6fd65050ba84814
MD5 c745e49a8cef6f5b523392f4305db392
BLAKE2b-256 52cf570472880d64813e108faf4888b545dbb5da3ef2cab9b3371e88588542c0

See more details on using hashes here.

Supported by

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