diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-08-29 22:27:45 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-08-29 22:27:45 +0000 |
commit | 83d05aa5aff0b27027fb10986390d898a3153eb2 (patch) | |
tree | 2f4b30d080442e0ec54d684262614717141a38fa /lib/sqlalchemy/databases/mysql.py | |
parent | cdde69e7bdef6d9a8a074d1051e099e217d33acf (diff) | |
download | sqlalchemy-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.py | 3 |
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) |