summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-08-29 22:27:45 +0000
committerJason Kirtland <jek@discorporate.us>2007-08-29 22:27:45 +0000
commit83d05aa5aff0b27027fb10986390d898a3153eb2 (patch)
tree2f4b30d080442e0ec54d684262614717141a38fa /lib/sqlalchemy/databases/mysql.py
parentcdde69e7bdef6d9a8a074d1051e099e217d33acf (diff)
downloadsqlalchemy-83d05aa5aff0b27027fb10986390d898a3153eb2.tar.gz
engine.url cleanups [ticket:742]
- translate_connect_args can now take kw args or the classic list - in-tree dialects updated to supply their overrides as keywords - tweaked url parsing in the spirit of the #742 patch, more or less
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index af01cf84e..6d5c54578 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -1353,7 +1353,8 @@ class MySQLDialect(default.DefaultDialect):
dbapi = classmethod(dbapi)
def create_connect_args(self, url):
- opts = url.translate_connect_args(['host', 'db', 'user', 'passwd', 'port'])
+ opts = url.translate_connect_args(database='db', username='user',
+ password='passwd')
opts.update(url.query)
util.coerce_kw_type(opts, 'compress', bool)