mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Hide idx_* tables if spatialite detected, closes #228
This commit is contained in:
parent
db7a57a9a6
commit
d3a0069c54
1 changed files with 9 additions and 0 deletions
|
|
@ -1284,6 +1284,15 @@ class Datasette:
|
||||||
'ElementaryGeometries', 'SpatialIndex', 'geometry_columns',
|
'ElementaryGeometries', 'SpatialIndex', 'geometry_columns',
|
||||||
'spatial_ref_sys', 'spatialite_history', 'sql_statements_log',
|
'spatial_ref_sys', 'spatialite_history', 'sql_statements_log',
|
||||||
'sqlite_sequence', 'views_geometry_columns', 'virts_geometry_columns'
|
'sqlite_sequence', 'views_geometry_columns', 'virts_geometry_columns'
|
||||||
|
] + [
|
||||||
|
r['name']
|
||||||
|
for r in conn.execute(
|
||||||
|
'''
|
||||||
|
select name from sqlite_master
|
||||||
|
where name like "idx_%"
|
||||||
|
and type = "table"
|
||||||
|
'''
|
||||||
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
for t in tables.keys():
|
for t in tables.keys():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue