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.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file datasette-explain-0.2.tar.gz.

File metadata

  • Download URL: datasette-explain-0.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for datasette-explain-0.2.tar.gz
Algorithm Hash digest
SHA256 10a94703884420598ab61527b97659dece970554520f4fee3b8fbdb5273a1ec3
MD5 b207f56ee1d82efbaa91c7ebbb48fc00
BLAKE2b-256 e39def16457560afb0c86ff4cf85151f166864d05cb5656bb360ae51f4748a0d

See more details on using hashes here.

File details

Details for the file datasette_explain-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_explain-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d66e6805290005a441017b3bec44328aa7c631a6a52d9fe9875e813a07f47e7
MD5 5cac50f8372c85574bec509bc1d52940
BLAKE2b-256 7b44fce490c4e1fbded613d43283ddaf7caa57171d0f3792817901a05aad1792

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