Turn SELECT queries returned by a query into links to execute them
Project description
datasette-query-links
Turn SELECT queries returned by a query into links to execute them
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-query-links
Usage
This is an experimental plugin, requiring Datasette 0.59a1 or higher.
Any SQL query that returns a value that itself looks like a valid SQL query will be converted into a link to execute that SQL query when it is displayed in the Datasette interface.
These links will only show for valid SQL query - if a SQL query would return an error it will not be turned into a link.
Demo
- Here's an example query showing the plugin in action.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-query-links
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for datasette-query-links-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943fa3ba387986e977ddc991e9c39b1d736e0b750bbea66f4d5054309594079d |
|
MD5 | c5d99417b495830d79c3feb8cad27086 |
|
BLAKE2b-256 | d95dcdabbb1926ed83cda1f7c6927858787d7b036f86b4693214a011ab03ba74 |
Hashes for datasette_query_links-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab76bf8caf4a67b9d0cec6b2ff088e6f65d4cbf6ec20c9bf74a3f4c1c503a061 |
|
MD5 | e719baba718aec6c105a138f3bf0c741 |
|
BLAKE2b-256 | e333784cbe7ccabe49286c1389014ff40460963e7e5742d65cf7225138499421 |