How do I set transaction level READ UNCOMMITED
for all queries done through a SQL Alchemy engine object?
I set the isolation_level
argument as notated here: http://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine.params.isolation_level
by passing it into create_engine
like so:
my_eng = create_engine(db_conn_string, isolation_level='READ_UNCOMMITTED')
but for my backend (MS SQL Server) I get the following error, perhaps unsurprisingly as the docs do say it is dialect specific. I'm just surprised theres no documentation for isolation levels in MS SQL!
TypeError: Invalid argument(s) 'isolation_level' sent to create_engine(),
using configuration MSDialect_pyodbc/QueuePool/Engine. Please check that
the keyword arguments are appropriate for this combination of components.
Furthermore, I do not see anything helpful in the dialects docs here:
http://docs.sqlalchemy.org/en/rel_1_0/dialects/mssql.html#dsn-connections