Skip to content

Commit a792706

Browse files
committed
Document using parameter consistently
1 parent 91b873c commit a792706

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

psqlextra/schema.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create(
7070
The name to give to the new schema (max 63 characters).
7171
7272
using:
73-
Name of the database connection to use.
73+
Optional name of the database connection to use.
7474
"""
7575

7676
if len(name) > cls.NAME_MAX_LENGTH:
@@ -116,7 +116,7 @@ def delete_and_create(
116116
and anything that references it if it exists.
117117
118118
using:
119-
Name of the database connection to use.
119+
Optional name of the database connection to use.
120120
"""
121121

122122
with transaction.atomic(using=using):
@@ -133,7 +133,7 @@ def exists(cls, name: str, *, using: str = DEFAULT_DB_ALIAS) -> bool:
133133
exists.
134134
135135
using:
136-
Name of the database connection to use.
136+
Optional name of the database connection to use.
137137
"""
138138

139139
connection = connections[using]
@@ -197,6 +197,9 @@ def postgres_temporary_schema(
197197
delete_on_throw:
198198
Whether to automatically drop the schema if
199199
any error occurs within the context manager.
200+
201+
using:
202+
Optional name of the database connection to use.
200203
"""
201204

202205
schema = PostgresSchema.create_random(prefix, using=using)

0 commit comments

Comments
 (0)