Skip to main content

macss-modular-api-sqlserver

Official MACSS SQL Server integration package for Python.

Quick start

from modular_api_sqlserver import DbClient, DbCommand, DbCommandKind, DbConnectionSettings

settings = DbConnectionSettings.from_environment()

client = DbClient(
    settings=settings,
    session_provider=my_session_provider,
    command_executor=my_command_executor,
    transaction_runner=my_transaction_runner,
)

result = client.scalar(
    DbCommand(
        kind=DbCommandKind.SCALAR,
        text="select count(*) from users",
        label="users.count",
    )
)

if result.is_success:
    print(result.value.value)
else:
    print(result.failure.message)

See example/example.py for a complete in-memory wiring sample.

What this package provides

  • normalized SQL Server connection defaults and redacted summaries
  • engine-agnostic DbClient, DbRepository, and transaction contracts
  • explicit lease ownership semantics for package-owned and application-owned sessions
  • health contributor and GraphQL support bundle for higher-level integrations
  • the application supplies the driver binding (adapter) for its chosen engine and driver

This package is contracts-only by design and will never ship a driver binding; you choose your engine and driver and provide the adapter. See ADR-0004.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macss_modular_api_sqlserver-0.7.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

macss_modular_api_sqlserver-0.7.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file macss_modular_api_sqlserver-0.7.0.tar.gz.

File metadata

File hashes

Hashes for macss_modular_api_sqlserver-0.7.0.tar.gz
Algorithm Hash digest
SHA256 8acf0641e8cdc96b2e45ceef08bdb2a3d709767f2a3888474e8b826240bd65d9
MD5 a9e65eab1cd99e27dc6fcd197d96c974
BLAKE2b-256 ac20cd5d7c710e5798cecaf70404a337af1bd47e248106757c63d478fa33cce4

See more details on using hashes here.

File details

Details for the file macss_modular_api_sqlserver-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for macss_modular_api_sqlserver-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11f14c95c8d8757601ecb7e3f1192f1383fb114580e9caabe401b7c673e5bc28
MD5 6dc38bea1fa51b5e7c0ed680d8942907
BLAKE2b-256 82fe377a3254c09abbe634c061e5a427916192fa425d8b349476bbec1b47e091

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