Skip to main content

连接数据库工具包

支持类型

  • 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'))

Metadata

Release files for wbs-connectdb 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wbs-connectdb 0.1.3
File Size Uploaded
wbs_connectdb-0.1.3.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wbs-connectdb 0.1.3
File Interpreter ABI Platform
wbs_connectdb-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / wbs_connectdb-0.1.3.tar.gz

Download URL wbs_connectdb-0.1.3.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a48f4254e0d75dc182f7efbec1926cd11fb0b2eb1516bd8d8459fddc884365fc
BLAKE2b-256 checksum
How to use checksums
01ad9f212d95e760f083fd16535c9448ae55335978e477ca8fbcb122d6fdbdcb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / wbs_connectdb-0.1.3-py3-none-any.whl

Download URL wbs_connectdb-0.1.3-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f90bc9d4e412625edd2907178a112a58997a169059efa76f39637f7f5059730
BLAKE2b-256 checksum
How to use checksums
602947fdf34acf4ad92a7dc1cfb94a4dda6f05252a0d6a37ce01c6f59dd4ede9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

1 release file

0.1.0

1 release file

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page