IsaacKerson commited on
Commit
d8a2c2b
1 Parent(s): 12a18ff

add db size query

Browse files
Files changed (1) hide show
  1. pages/view.py +5 -0
pages/view.py CHANGED
@@ -20,6 +20,11 @@ def app():
20
 
21
  c, conn = db_connect(DATABASE)
22
 
 
 
 
 
 
23
  query = st.text_input("Query", placeholder="Type query here")
24
 
25
  if len(query) > 1:
 
20
 
21
  c, conn = db_connect(DATABASE)
22
 
23
+ size_query = "SELECT page_count * page_size as size FROM pragma_page_count(), pragma_page_size()"
24
+
25
+ for item in c.execute(size_query):
26
+ st.write(item)
27
+
28
  query = st.text_input("Query", placeholder="Type query here")
29
 
30
  if len(query) > 1: