Skip to content

Commit 0bb392d

Browse files
committed
Consistently document the using parameter
1 parent 5d55c25 commit 0bb392d

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

docs/source/table_partitioning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Command-line options
101101
Long flag Short flag Default Description
102102
==================== ============= ================ ==================================================================================================== === === === === === ===
103103
``--yes`` ``-y`` ``False`` Specifies yes to all questions. You will NOT be asked for confirmation before partition deletion.
104-
``--using`` ``-u`` ``'default'`` Name of the database connection to use.
104+
``--using`` ``-u`` ``'default'`` Optional name of the database connection to use.
105105
``--skip-create`` ``False`` Whether to skip creating partitions.
106106
``--skip-delete`` ``False`` Whether to skip deleting partitions.
107107

psqlextra/locking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def postgres_lock_table(
4545
using it's ``search_path``.
4646
4747
using:
48-
Name of the database alias to use.
48+
Optional name of the database connection to use.
4949
"""
5050

5151
connection = connections[using]
@@ -89,7 +89,7 @@ def postgres_lock_model(
8989
this unless you're doing something special.
9090
9191
using:
92-
Name of the database alias to use.
92+
Optional name of the database connection to use.
9393
"""
9494

9595
postgres_lock_table(

psqlextra/management/commands/pgpartition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def add_arguments(self, parser):
3737
parser.add_argument(
3838
"--using",
3939
"-u",
40-
help="Name of the database connection to use.",
40+
help="Optional name of the database connection to use.",
4141
default="default",
4242
)
4343

psqlextra/partitioning/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def plan(
3939
for deletion, regardless of the configuration.
4040
4141
using:
42-
Name of the database connection to use.
42+
Optional name of the database connection to use.
4343
4444
Returns:
4545
A plan describing what partitions would be created

psqlextra/partitioning/plan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def apply(self, using: Optional[str]) -> None:
2828
2929
Arguments:
3030
using:
31-
Name of the database connection to use.
31+
Optional name of the database connection to use.
3232
"""
3333

3434
connection = connections[using or "default"]

psqlextra/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def bulk_insert(
131131
just dicts.
132132
133133
using:
134-
Name of the database connection to use for
134+
Optional name of the database connection to use for
135135
this query.
136136
137137
Returns:

0 commit comments

Comments
 (0)