MongoDB connector for BI SQLAlchemy Dialect
Project description
MongoDB connector for BI SQLAlchemy dialect.
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.
Source Distribution
Built Distribution
Close
Hashes for sqlalchemy_mongobi-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c965f7ded898cade94132a47a98c3ea90687afcdee616fec19c009655f1decba |
|
MD5 | 981a4f3fd9c25464e81f24a666574214 |
|
BLAKE2b-256 | 8898e77443dc2ffa8a70d7216476fb9860301944cdbe74cdb27ad359e63aa8c9 |