File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ def save(self, python_filename=None):
412
412
413
413
:return: a string containing the body of a complete Python module defining this schema.
414
414
"""
415
+ self .connection .dependencies .load ()
415
416
self ._assert_exists ()
416
417
module_count = itertools .count ()
417
418
# add virtual modules for referenced modules with names vmod0, vmod1, ...
@@ -477,11 +478,12 @@ def list_tables(self):
477
478
478
479
:return: A list of table names from the database schema.
479
480
"""
481
+ self .connection .dependencies .load ()
480
482
return [
481
483
t
482
484
for d , t in (
483
485
full_t .replace ("`" , "" ).split ("." )
484
- for full_t in Diagram ( self ) .topo_sort ()
486
+ for full_t in self . connection . dependencies .topo_sort ()
485
487
)
486
488
if d == self .database
487
489
]
@@ -530,7 +532,6 @@ def __init__(
530
532
531
533
def list_schemas (connection = None ):
532
534
"""
533
-
534
535
:param connection: a dj.Connection object
535
536
:return: list of all accessible schemas on the server
536
537
"""
You can’t perform that action at this time.
0 commit comments