I am planning to add, as an extension, the ability for adodbapi to change its paramstyle. I personally like "named" much better than "qmark", and it happens that django expects to have "format", so I will add that, too.<br>
<br>My question is, what would be an appropriate way to specify the altered paramstyle? <br><br>1) As an attribute of the connection:<br> con = adodbapi.connect('spam eggs")<br> con.paramstyle = "named"<br>
<br>2) Make the module global mutable:<br> adodbapi.adodbapi.paramstyle = "named" # [ ick! ]<br><br>3) As a named parameter of the connection:<br> con = adodbapi.connect("spam eggs", paramstyle="named")<br>
<br>Has anyone else done this? <br>How did they do it? <br>How will some speculated future db-api version 3.0 want it?<br>--<br>Vernon Cole<br><br>