File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -348,11 +348,11 @@ For this import DatabaseJanitor and use its init and drop methods:
348
348
# variable definition
349
349
350
350
janitor = DatabaseJanitor(
351
- postgresql_proc.user,
352
- postgresql_proc.host,
351
+ user = postgresql_proc.user,
352
+ host = postgresql_proc.host,
353
353
postgresql_proc.port,
354
- " my_test_database" ,
355
- postgresql_proc.version,
354
+ testdb = " my_test_database" ,
355
+ version = postgresql_proc.version,
356
356
password = " secret_password" ,
357
357
)
358
358
janitor.init()
@@ -377,11 +377,11 @@ or use it as a context manager:
377
377
# variable definition
378
378
379
379
with DatabaseJanitor(
380
- postgresql_proc.user,
381
- postgresql_proc.host,
382
- postgresql_proc.port,
383
- " my_test_database" ,
384
- postgresql_proc.version,
380
+ user = postgresql_proc.user,
381
+ host = postgresql_proc.host,
382
+ port = postgresql_proc.port,
383
+ dbname = " my_test_database" ,
384
+ version = postgresql_proc.version,
385
385
password = " secret_password" ,
386
386
):
387
387
yield psycopg2.connect(
You can’t perform that action at this time.
0 commit comments