Skip to main content

database_wrapper_mssql

Part of the database_wrapper package.

This python package is a database wrapper for Mssql database.

Installation

pip install database_wrapper[mssql]

Prerequisites

  • pymssql
  • pyodbc - currently this is used for introspection and only installed in development environment

Usage

from database_wrapper_mssql import Mssql, DBWrapperMssql

db = Mssql({
    "hostname": "localhost",
    "port": "1433",
    "username": "sa",
    "password": "your_password",
    "database": "master"
})
db.open()
dbWrapper = DBWrapperMssql(dbCursor=db.cursor)

# Simple query
aModel = MyModel()
res = await dbWrapper.getByKey(
    aModel,
    "id",
    3005,
)
if res:
    print(f"getByKey: {res.toDict()}")
else:
    print("No results")

# Raw query
res = await dbWrapper.getAll(
    aModel,
    customQuery="""
        SELECT t1.*, t2.name AS other_name
        FROM my_table AS t1
        LEFT JOIN other_table AS t2 ON t1.other_id = t2.id
    """
)
async for record in res:
    print(f"getAll: {record.toDict()}")
else:
    print("No results")

db.close()

Metadata

Release files for database-wrapper-mssql 0.3.146

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

Source distribution (sdist)

Source distribution for database-wrapper-mssql 0.3.146
File Size Uploaded
database_wrapper_mssql-0.3.146.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for database-wrapper-mssql 0.3.146
File Interpreter ABI Platform
database_wrapper_mssql-0.3.146-py3-none-any.whl Python 3 none any Details

Total release size: 19.0 kB

Release files / database_wrapper_mssql-0.3.146.tar.gz

Download URL database_wrapper_mssql-0.3.146.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
96224dcb73b94e6e4f1a2b95eebabd60fb2797b6a7112f0f96a2d538dde801c7
BLAKE2b-256 checksum
How to use checksums
2789d7b0a5a3937670d5e49cd960b19cbf6766640587624817a26bdfd4ec847a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release files / database_wrapper_mssql-0.3.146-py3-none-any.whl

Download URL database_wrapper_mssql-0.3.146-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
791af35d5d8beff59346d081402d9f4de303c763a6be0a6fe0d23c895862ac19
BLAKE2b-256 checksum
How to use checksums
1056a2977056f5deb9d76e18fa9e249b4a82da9d0ad18780a0e3d95e0dc13909
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.146 This release

2 release files

0.2.38

2 release files

0.2.33

2 release files

0.2.32

2 release files

0.2.30

2 release files

0.2.27

2 release files

0.2.26

2 release files

0.2.23

2 release files

0.2.12

2 release files

0.2.9

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

1 release file

0.2.2

2 release files

0.1.90

2 release files

0.1.89

2 release files

0.1.87

2 release files

0.1.85

2 release files

0.1.84

2 release files

0.1.82

2 release files

0.1.80

2 release files

0.1.78

2 release files

0.1.73

2 release files

0.1.72

2 release files

0.1.44

2 release files

0.1.43

2 release files

0.1.42

2 release files

0.1.40

2 release files

0.1.38

2 release files

0.1.37

2 release files

0.1.29

1 release file

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