From 8ce7866312f9b7c873541d6e3662ada3e850fa85 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 10 Jan 2019 16:44:37 -0800 Subject: [PATCH] compile_options output in /-/versions, closes #396 --- datasette/app.py | 3 +++ docs/introspection.rst | 12 +++++++++++- tests/test_api.py | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/datasette/app.py b/datasette/app.py index cdfcb11d..8252184c 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -363,6 +363,9 @@ class Datasette: "version": sqlite_version, "fts_versions": fts_versions, "extensions": sqlite_extensions, + "compile_options": [ + r[0] for r in conn.execute("pragma compile_options;").fetchall() + ], }, } diff --git a/docs/introspection.rst b/docs/introspection.rst index 1a0ab952..b4dbfc6e 100644 --- a/docs/introspection.rst +++ b/docs/introspection.rst @@ -61,7 +61,7 @@ This is an internal implementation detail of Datasette and the format should not /-/versions ----------- -Shows the version of Datasette, Python and SQLite. `Versions example `_:: +Shows the version of Datasette, Python and SQLite. `Versions example `_:: { "datasette": { @@ -76,9 +76,19 @@ Shows the version of Datasette, Python and SQLite. `Versions example