Skip to main content

Explain SQL queries executed using Datasette

Project description

datasette-explain

PyPI Changelog Tests License

Explain SQL queries executed using Datasette

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-explain

Usage

The plugin adds JavaScript to the query editor page which will constantly update the page with information gained from running EXPLAIN QUERY PLAN queries against the entered SQL.

This may result in an error message, or it may show the query plan along with any tables used by the query.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-explain
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-explain-0.1a0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

datasette_explain-0.1a0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file datasette-explain-0.1a0.tar.gz.

File metadata

  • Download URL: datasette-explain-0.1a0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for datasette-explain-0.1a0.tar.gz
Algorithm Hash digest
SHA256 fe374a9aa73df1b07e544c3137e9e3a7a4f925739ac6bda165a1ba2ee291f520
MD5 02d06d5ecb680e54cbc5d6efa7b0844b
BLAKE2b-256 94bd3443a670f34315251b871fc0d72ff97c88e87be3d22821af0b20f59628b6

See more details on using hashes here.

File details

Details for the file datasette_explain-0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_explain-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad3df6c12f9811ad517090b082bd4ed6bc38f1e145a4012f8f3cd6b4170f3f3
MD5 08ef78ae8801d7d8ff8d8394e6296622
BLAKE2b-256 05ae1e7965e2f459fe322702022f9da559e99968b66937a3c1ec44cf34762ed8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page