No project description provided
Project description
连接数据库工具包
支持类型
- Mysql
- Postgresql
- Hologres
使用方法
- 下载
pip install -i https://pypi.org/project wbs-connectdb
- 使用
import Connection_Tool.Connection as Connection
conn_info = Connection.Connection(
host='xxxxxxxxxxxxxxxx',
port=xxx,
dbname='xxxxx',
user='xxxx',
password='xxxx'
)
# 返回连接对象
conn = conn_info.ConectPsql()
#创建游标
cur = conn.cursor()
# 务必释放资源
cur.close()
conn.close()
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
wbs_connectdb-0.1.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for wbs_connectdb-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b1416b4ac3199dcc3027e84c0f180ea835fbaff2011f2353cf0741961819d8a |
|
MD5 | 0d8e6cf5b25ce04461fc7792096e2bb6 |
|
BLAKE2b-256 | 3d061743c75c92e3eea8f9adb9c6183270a9c1b6769e0b47076eb71c66c1f112 |