]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Corrected a few docs and didn't realize we put pyodbc first in the search list.
authorMichael Trier <mtrier@gmail.com>
Sun, 4 Jan 2009 03:31:05 +0000 (03:31 +0000)
committerMichael Trier <mtrier@gmail.com>
Sun, 4 Jan 2009 03:31:05 +0000 (03:31 +0000)
lib/sqlalchemy/databases/mssql.py

index e14732745fa3f69214f9300faa809f9f0a51e8a8..15f30942a5a0eb495581c3e822528f18dcf6b295 100644 (file)
@@ -7,14 +7,23 @@ Driver
 
 The MSSQL dialect will work with three different available drivers:
 
-* *pymssql* - http://pymssql.sourceforge.net/
-
 * *pyodbc* - http://pyodbc.sourceforge.net/. This is the recommeded
   driver.
 
+* *pymssql* - http://pymssql.sourceforge.net/
+
 * *adodbapi* - http://adodbapi.sourceforge.net/
 
 Drivers are loaded in the order listed above based on availability.
+
+If you need to load a specific driver pass ``module_name`` when
+creating the engine::
+
+    engine = create_engine('mssql://dsn', module_name='pymssql')
+
+``module_name`` currently accepts: ``pyodbc``, ``pymssql``, and
+``adodbapi``.
+
 Currently the pyodbc driver offers the greatest level of
 compatibility.