mirror of
https://github.com/simonw/datasette.git
synced 2026-06-05 16:46:57 +02:00
More SpatiaLite details on /-/versions, closes #1607
This commit is contained in:
parent
1b2f0ab6bb
commit
458f03ad3a
3 changed files with 65 additions and 0 deletions
|
|
@ -52,9 +52,41 @@ SPATIALITE_PATHS = (
|
|||
"/usr/local/lib/mod_spatialite.dylib",
|
||||
"/usr/local/lib/mod_spatialite.so",
|
||||
)
|
||||
# Used to display /-/versions.json SpatiaLite information
|
||||
SPATIALITE_FUNCTIONS = (
|
||||
"spatialite_version",
|
||||
"spatialite_target_cpu",
|
||||
"check_strict_sql_quoting",
|
||||
"freexl_version",
|
||||
"proj_version",
|
||||
"geos_version",
|
||||
"rttopo_version",
|
||||
"libxml2_version",
|
||||
"HasIconv",
|
||||
"HasMathSQL",
|
||||
"HasGeoCallbacks",
|
||||
"HasProj",
|
||||
"HasProj6",
|
||||
"HasGeos",
|
||||
"HasGeosAdvanced",
|
||||
"HasGeosTrunk",
|
||||
"HasGeosReentrant",
|
||||
"HasGeosOnlyReentrant",
|
||||
"HasMiniZip",
|
||||
"HasRtTopo",
|
||||
"HasLibXML2",
|
||||
"HasEpsg",
|
||||
"HasFreeXL",
|
||||
"HasGeoPackage",
|
||||
"HasGCP",
|
||||
"HasTopology",
|
||||
"HasKNN",
|
||||
"HasRouting",
|
||||
)
|
||||
# Length of hash subset used in hashed URLs:
|
||||
HASH_LENGTH = 7
|
||||
|
||||
|
||||
# Can replace this with Column from sqlite_utils when I add that dependency
|
||||
Column = namedtuple(
|
||||
"Column", ("cid", "name", "type", "notnull", "default_value", "is_pk", "hidden")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue