We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923c2a7 commit b296484Copy full SHA for b296484
datajoint/schema.py
@@ -76,6 +76,12 @@ def __repr__(self):
76
database=self.database,
77
context=self.context['__name__'] if '__name__' in self.context else "__")
78
79
+ @property
80
+ def size_on_disk(self):
81
+ return float(self.connection.query(
82
+ """SELECT Sum(data_length + index_length) FROM information_schema.tables WHERE table_schema='{}';""".format(
83
+ self.database)).fetchone()[0])
84
+
85
def spawn_missing_classes(self):
86
"""
87
Creates the appropriate python user relation classes from tables in the database and places them
0 commit comments