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

This plugin requires a Datasette 1.0 alpha or higher.

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.1a1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

datasette_explain-0.1a1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for datasette-explain-0.1a1.tar.gz
Algorithm Hash digest
SHA256 926a04e2fd18402b66e50c03010704d78820c27e945d7aa7e636e72b74455034
MD5 3edcc57faecf8dd39ad82f334c78244b
BLAKE2b-256 a8b9999c2af115737333df380c55aa9b67ba5d6e3ae08ce8f0632fe73fe5a95e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datasette_explain-0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa244547dcb2c88d79e6753aa43a233d247d2efa557356ce3f2dc0b5e18534c7
MD5 1f28f25c9327c7d3d6a5f19e501356da
BLAKE2b-256 9160240aa1f7ae111c61d62fc1e3b27808811102ad60083a3f799b0403f1e2e9

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