Skip to main content

数据库连接信息管理

Project description

dbcfg本身

dbcfg的python包。包含python的库以及dbcfg本身。

有关dbcfg的文档请参考

https://gitee.com/chenc224/dbcfg/blob/master/README.md

安装

使用

pip install dbcfg

即可下载安装

使用方法

import dbcfg
dbc=dbcfg.use("xxx",ehm=1)
db=dbc.connect()        #返回数据库连接

ehm参数表用于控制有问题、有异常时如何处理

ehm 处理细节
0 默认值,不特殊处理。
1 如果调用的返回码为非0,则打印rtinfo的内容
2 如果调用的返回码为非0,则触发异常

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

dbcfg-0.3.1.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file dbcfg-0.3.1.tar.gz.

File metadata

  • Download URL: dbcfg-0.3.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for dbcfg-0.3.1.tar.gz
Algorithm Hash digest
SHA256 59f004f5c3c80cac0eccca3737c5c941363c1b6e43bdc99e7e972baaad94c494
MD5 b2dbcf2748142adae0ad5785ffb99420
BLAKE2b-256 e5c42d149d2fae5c786f736fab93aca8e7a373f98bcfcbb021cb5f2c4f9464cb

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