Skip to main content

MongoDB connector for BI SQLAlchemy Dialect

Project description

MongoDB connector for BI SQLAlchemy dialect.

https://img.shields.io/pypi/v/sqlalchemy_mongobi.svg https://img.shields.io/travis/smarzola/sqlalchemy-mongobi.svg

MongoDB connector for BI does not have support for transactions but SQLAlchemy DBAPI layer uses ROLLBACKs after the connection initialization even if the connection pool is configured with reset_on_return=False. This dialect ignores COMMITs and ROLLBACKs, and uses the NullPool connection pool (which means no pooling, opens and closes the underlying DB-API connection per each connection open/close).

Usage

The DSN format is similar to that of mysql:

engine = create_engine(
    "mongobi://user?source=auth_db:password@url:port/database",
    connect_args={
        "ssl": {
            "mode": "PREFERRED"
        }
    },
    pool_reset_on_return=False,
)

DBAPI Support

The following DBAPI options are available:

  • mysqlclient:

    mongobi+mysqldb://user?source=auth_db:password@url:port/database
    
  • PyMySQL:

    mongobi+pymysql://user?source=auth_db:password@url:port/database
    

Project details


Download files

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

Files for sqlalchemy-mongobi, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size sqlalchemy_mongobi-0.2.1-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sqlalchemy_mongobi-0.2.1.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page