You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.cursor.execute("""SELECT schema_name FROM information_schema.schemata WHERE schema_name != 'pg_catalog' AND schema_name != 'information_schema';""")
18
18
schemata=self.cursor.fetchall()
19
19
20
+
try:
21
+
self.cursor.execute("""SELECT * FROM raster_columns;""")
22
+
has_rasters=True
23
+
except:
24
+
has_rasters=False
25
+
20
26
forschemainschemata:
21
27
self.cursor.execute(f"""SELECT table_name FROM information_schema.tables WHERE table_schema = '{schema[0]}'""")
22
28
fortableinself.cursor.fetchall():
29
+
ifhas_rasters:
30
+
self.cursor.execute(f"""SELECT * FROM raster_columns WHERE r_table_name = '{table[0]}' AND r_table_schema = '{schema[0]}';""")
0 commit comments