Skip to main content

No project description provided

Project description

连接数据库工具包

支持类型

  • Mysql
  • Postgresql
  • Hologres

使用方法

  1. 下载
pip install -i https://pypi.org/project wbs-connectdb
  1. 使用
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)

Uploaded Source

Built Distribution

wbs_connectdb-0.1.3-py3-none-any.whl (2.7 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