]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
create_args->connect_args
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 8 Nov 2006 02:22:24 +0000 (02:22 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 8 Nov 2006 02:22:24 +0000 (02:22 +0000)
doc/build/content/dbengine.txt

index 21ce8d4068c6c7b5369fcb3c06fc6d309f7766dd..6068937f37937375bc3a192c788e51686e487244 100644 (file)
@@ -72,7 +72,7 @@ If SQLAlchemy's database connector is aware of a particular query argument, it m
 `create_engine` also takes an argument `connect_args` which is an additional dictionary that will be passed to `connect()`.  This can be used when arguments of a type other than string are required, and SQLAlchemy's database connector has no type conversion logic present for that parameter:
 
     {python}
-    db = create_engine('postgres://scott:tiger@localhost/test', create_args = {'argument1':17, 'argument2':'bar'})
+    db = create_engine('postgres://scott:tiger@localhost/test', connect_args = {'argument1':17, 'argument2':'bar'})
 
 The most customizable connection method of all is to pass a `creator` argument, which specifies a callable that returns a DBAPI connection: