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 details)
Built Distribution
File details
Details for the file wbs_connectdb-0.1.3.tar.gz
.
File metadata
- Download URL: wbs_connectdb-0.1.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a48f4254e0d75dc182f7efbec1926cd11fb0b2eb1516bd8d8459fddc884365fc |
|
MD5 | 38d17cd5d1d7fa852ba1eb816899dc01 |
|
BLAKE2b-256 | 01ad9f212d95e760f083fd16535c9448ae55335978e477ca8fbcb122d6fdbdcb |
File details
Details for the file wbs_connectdb-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: wbs_connectdb-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f90bc9d4e412625edd2907178a112a58997a169059efa76f39637f7f5059730 |
|
MD5 | 0304e029213946c3291046aee1a42711 |
|
BLAKE2b-256 | 602947fdf34acf4ad92a7dc1cfb94a4dda6f05252a0d6a37ce01c6f59dd4ede9 |