No project description provided
Project description
连接数据库工具包
支持类型
- Mysql
- Postgresql
- Hologres
使用方法
- 下载
pip install -i https://pypi.org/project wbs-connectdb
- 使用
import Connection_Tool.Connection as Connection
# mysql
mysql= Connection.Mysql(
host='127.0.0.1',
port=3306,
dbname='',
user='root',
password='root')
# psql
psql = Connection.Psql(
host='127.0.0.1',
port=5433,
dbname='db',
user='postgres',
password='admin'
)
print(psql.ExecuteSql('select 1'))
print(mysql.ExecuteSql('select 2'))
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.3.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for wbs_connectdb-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f90bc9d4e412625edd2907178a112a58997a169059efa76f39637f7f5059730 |
|
MD5 | 0304e029213946c3291046aee1a42711 |
|
BLAKE2b-256 | 602947fdf34acf4ad92a7dc1cfb94a4dda6f05252a0d6a37ce01c6f59dd4ede9 |