db utils with pymysql by chzcb
Project description
dbutils
使用方法
from zcb_dbutils.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.4.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for zcb_dbutils-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c760a9362e6d34379d5c7e0ce9b66901e22882d9a0daf23e50dc9f449fdd56a6 |
|
MD5 | 90e75eef40570a422cbd4459f59af7d6 |
|
BLAKE2b-256 | 32eb28d3ce241c9d807adcc0345d5f827ed24c1003321cc8706c4206ca42a94f |