db utils with pymysql by chzcb
Project description
dbutils
使用方法
from zcb_dbutils import DBConnection
dbconn = DBConnection(host='localhost', port=3306, user='root', password='', database='mysql')
# 查询单条数据
row = dbconn.fetch_one('select * from table limit 1')
# 查询多条数据
rows = dbconn.fetch_rows('select * from table')
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
zcb_dbutils-0.0.3.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for zcb_dbutils-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5f978a75c131e900af2940e95c80392f2b67e33d5c5e58dfb10dfef1de33f1 |
|
MD5 | e531b5b7cd0b75eeaf3a31e872377da0 |
|
BLAKE2b-256 | cf8d3fc67b602ba478757fc0cb2df8be7bf1bd733ebb41cd8e07176b61257649 |