Boris Sabatier <[email protected]> wrote:

> Hi,
> 
> I need to pass connect_args={'isolation_level':None} when I create my engine.


“None” is the default that’s used if isolation_level is not passed, and means 
to do nothing.  So just don’t pass it, there’s no need to pass “None”.


> With create_engine, it's work well.
> 
> But I would like to use engine_from_config instead of create_engine.
> 
> This is what I tried and the errors : 
> 
> # ini file :
> sqlalchemy.connect_args = {'isolation_level':None}

well if this were to be available in an .ini file, that’s not Python code in an 
.ini file, it would have to be interpreted, such as:

        sqlalchemy.connect_args = none

there’s a system by which these values are interpreted on a case-by-case basis 
that’s stated in each dialect class, if the type is something other than 
string.    But this parameter isn’t part of that, since it’s just a string 
type, and there’s no “None” handling.   You’d just omit the argument to use the 
default value.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to