Skip to main content

SA dialect for MSSQL using PyODBC which handles MSSQL-specific limitations

Project description

sqlalchemy_pyodbc_mssql Readme

https://circleci.com/gh/level12/sqlalchemy_pyodbc_mssql.svg?&style=shield https://codecov.io/gh/level12/sqlalchemy_pyodbc_mssql/branch/master/graph/badge.svg

Overview

PyODBC is Microsoft’s recommended DBAPI layer for connecting a python application to MSSQL. However, the layer is not MSSQL-specific, and so it has some limitations:

SQLAlchemy has a PyODBC dialect for MSSQL usage, but it also shares these limitations.

[PyMSSQL](http://www.pymssql.org) exists as an alternative DBAPI layer and dialect for SQLAlchemy. Since it prepares queries by rolling parameters into the query string itself (properly quoted, of course) rather than issuing ODBC prepared statements, it does not share the above problems.

sqlalchemy_pyodbc_mssql extends the built-in SQLAlchemy PyODBC dialect in order to work around these limits in a manner consistent with PyMSSQL’s implementation. Most queries are passed as-is to PyODBC to be prepared and executed normally. Those that would not work, due to the above issues, are given special treatment to avoid the limitations and keep the app developer from needing to keep track of when to apply workarounds.

Usage

  • Installation
    • for usage in app: pip install sqlalchemy_pyodbc_mssql

    • to run tests: pip install sqlalchemy_pyodbc_mssql[tests]

  • Usage

Changelog

0.1.0 released 2019-06-17

  • initial release

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

sqlalchemy_pyodbc_mssql-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

sqlalchemy_pyodbc_mssql-0.1.0-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sqlalchemy_pyodbc_mssql-0.1.0.tar.gz.

File metadata

  • Download URL: sqlalchemy_pyodbc_mssql-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for sqlalchemy_pyodbc_mssql-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ebaa29f294507af3ee6f61af1375c5eefbaa3ade3e02837ec8ee6a3b80e2ba22
MD5 8628945ee273731a45995d79b798b391
BLAKE2b-256 67c0068c6374902e63d63432ebb431cc41cad314230e4c72402b6bf0c0a32bba

See more details on using hashes here.

Provenance

File details

Details for the file sqlalchemy_pyodbc_mssql-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sqlalchemy_pyodbc_mssql-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for sqlalchemy_pyodbc_mssql-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7c8fedf16ccedf7b67cde3394dda759225f81b57de11b1c141fcc53347be3577
MD5 248b257eb597b8f821e01e02e61792a2
BLAKE2b-256 c7dd8cff6a212206e48a9db044856aa250dda45ac92a1d6e83287cf80dbe5b71

See more details on using hashes here.

Provenance

Supported by

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