Skip to main content

mssqlconnect

Project description

mssqlconnect

Python Version License

mssqlconnect 是一个 Python 库,旨在简化与 Microsoft SQL Server 数据库的连接和交互过程。它提供了一个简洁的接口来执行 SQL 查询、管理数据库连接和处理结果集。

特点

  • 简洁的接口:易于使用的接口,快速开始。

安装

使用 pip 安装 mssqlconnect

pip install mssqlconnect

使用

from mssqlconnect import SQLServer

parameter = {
    "server": "127.0.0.1",
    "username": "sa",
    "password": "你的密码",
    "database": "你的数据库名称"
}

def main():
    with SQLServer(parameter) as conner:
        result = conner.execute_query("SELECT * FROM [dbo].[user]")
        result = conner.ex("SELECT * FROM [dbo].[user]")
        print(result)

if __name__ == '__main__':
    main()

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

mssqlconnect-0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mssqlconnect-0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file mssqlconnect-0.3.tar.gz.

File metadata

  • Download URL: mssqlconnect-0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for mssqlconnect-0.3.tar.gz
Algorithm Hash digest
SHA256 bde923a16b55bb5544e0cd483eaa76cdf1201724619456bc0ecfc7e643f627ca
MD5 cada56951d28066e582c4fa72f376731
BLAKE2b-256 be0fc63161c7e398116ec6ae0de35fc9a13410efac171e77b207d23777335b72

See more details on using hashes here.

File details

Details for the file mssqlconnect-0.3-py3-none-any.whl.

File metadata

  • Download URL: mssqlconnect-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for mssqlconnect-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 98c6ddee5c4ce9e6a1d29cb4a8f245d252d56634463cf2aef6e524eba0d8bd25
MD5 bb7ec1a3f8207ac4b6084ae8d3b9e905
BLAKE2b-256 6c42b39909daff6406bb486f32d6d7b3deced3f7046e23d9244d64aabddcee52

See more details on using hashes here.

Supported by

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