Skip to main content

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)

Uploaded Source

Built Distribution

zcb_dbutils-0.0.3-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

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