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.4.0

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.4.0
File Size Uploaded Provenance Actions
database_wrapper_mssql-0.4.0.tar.gz 9.4 kB With provenance Details for database_wrapper_mssql-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 19.1 kB

Release files / database_wrapper_mssql-0.4.0.tar.gz

Download URL database_wrapper_mssql-0.4.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8daf97f85da8e4147de67218d329e7fc5f79362edadb533dd5e75cf304449f90
BLAKE2b-256 checksum
How to use checksums
1b5cf13e9dc23de5193176a7cf006b6c6bf7626cae75a0239140b6ff108b7ac4
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 Oct 27, 2026.

Transparency log

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

Download URL database_wrapper_mssql-0.4.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba3b461808d26b9cbf0b82a3c541ec9669e622b9f49fef34a9915a75e87e8fab
BLAKE2b-256 checksum
How to use checksums
7c357571b0dcae538d02928a55192d03ee4b555fefe0b2755beea15de2a6706b
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 Oct 27, 2026.

Transparency log

Security for database-wrapper-mssql 0.4.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for database_wrapper_mssql-0.4.0.tar.gz

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 Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files Full provenance

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