@@ -296,7 +296,7 @@ def to_constraint(
296
296
def create_primary_key (
297
297
cls ,
298
298
operations : "Operations" ,
299
- constraint_name : str ,
299
+ constraint_name : Optional [ str ] ,
300
300
table_name : str ,
301
301
columns : List [str ],
302
302
schema : Optional [str ] = None ,
@@ -321,9 +321,9 @@ def create_primary_key(
321
321
off normally. The :class:`~sqlalchemy.schema.AddConstraint`
322
322
construct is ultimately used to generate the ALTER statement.
323
323
324
- :param name : Name of the primary key constraint. The name is necessary
325
- so that an ALTER statement can be emitted. For setups that
326
- use an automated naming scheme such as that described at
324
+ :param constraint_name : Name of the primary key constraint. The name
325
+ is necessary so that an ALTER statement can be emitted. For setups
326
+ that use an automated naming scheme such as that described at
327
327
:ref:`sqla:constraint_naming_conventions`
328
328
``name`` here can be ``None``, as the event listener will
329
329
apply the name to the constraint object when it is associated
@@ -588,7 +588,7 @@ def to_constraint(
588
588
def create_foreign_key (
589
589
cls ,
590
590
operations : "Operations" ,
591
- constraint_name : str ,
591
+ constraint_name : Optional [ str ] ,
592
592
source_table : str ,
593
593
referent_table : str ,
594
594
local_cols : List [str ],
@@ -621,9 +621,9 @@ def create_foreign_key(
621
621
off normally. The :class:`~sqlalchemy.schema.AddConstraint`
622
622
construct is ultimately used to generate the ALTER statement.
623
623
624
- :param name : Name of the foreign key constraint. The name is necessary
625
- so that an ALTER statement can be emitted. For setups that
626
- use an automated naming scheme such as that described at
624
+ :param constraint_name : Name of the foreign key constraint. The name
625
+ is necessary so that an ALTER statement can be emitted. For setups
626
+ that use an automated naming scheme such as that described at
627
627
:ref:`sqla:constraint_naming_conventions`,
628
628
``name`` here can be ``None``, as the event listener will
629
629
apply the name to the constraint object when it is associated
@@ -2389,7 +2389,7 @@ def execute(
2389
2389
op.execute("INSERT INTO table (foo) VALUES ('\:colon_value')")
2390
2390
2391
2391
2392
- :param sql : Any legal SQLAlchemy expression, including:
2392
+ :param sqltext : Any legal SQLAlchemy expression, including:
2393
2393
2394
2394
* a string
2395
2395
* a :func:`sqlalchemy.sql.expression.text` construct.
0 commit comments