Skip to main content

Official MACSS SQL Server integration package for Python.

Project description

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.

Current slice

  • 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
  • real driver bindings intentionally remain outside this first slice

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

macss_modular_api_sqlserver-0.5.0.tar.gz (7.8 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.5.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for macss_modular_api_sqlserver-0.5.0.tar.gz
Algorithm Hash digest
SHA256 12b7b0aa2cae30869fd57740cc488acc9b925d66bb796f66df3a30a8b9eadbc4
MD5 804ca9626c45226c003fd0d3302035a9
BLAKE2b-256 c631bd120ddf853bc22fa8900dc1fa5fc45ae87e1dcea321df81d3f62afe902c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for macss_modular_api_sqlserver-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e469b6f3303ddfa632446b0418b62e2a33837426aa5e561201ff9566f55de720
MD5 fbc92ecb85c61082b1a15770a1395a1d
BLAKE2b-256 1475685e0d404a9db6cf42570682bdf496d2d51c355ec8b8dddf22cd004259e2

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