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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for datasette-explain-0.1a2.tar.gz
Algorithm Hash digest
SHA256 009e28d3cc5e80f5a6c093ac63edb91d89778c6d194cb197f2cbd4f9a5b92ebc
MD5 7c0b0ebbdc84b48ca5f046200fa89287
BLAKE2b-256 61fdd4bf5d01c168c5a6c68c4a36307cfb5f03c4e3ad6eb24e9fd5d6686ee153

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datasette_explain-0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a5d82731dcb865bfbde48a62d44c7a469e1d49eb83bcb953ff07ca22e3b4ba
MD5 0ca7d04836e9fbb101fbe2564a1a1920
BLAKE2b-256 5e93793ab854ca573065f10d75fed3d04f4f9dbdce938804faa9ffe7994dde38

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