Create a SQL view from a query
Project description
datasette-create-view
Create a SQL view from a query
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-create-view
Usage
Users with the create-table
permission will get a new menu item on the query results page offering to save the query as a view.
This option will only show for SQL queries that do not use :named
parameters.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-create-view
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
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
File details
Details for the file datasette-create-view-0.1.tar.gz
.
File metadata
- Download URL: datasette-create-view-0.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8dd84c511c18f8de549674061f7c85d91711a429624ec108d4f1b95945423e1 |
|
MD5 | b99c52c7c0078c30018c1ca7329a40e8 |
|
BLAKE2b-256 | 5855a6a93b4da09a6eae40102746088f61dd6f74bdf81dd23012d825ab43eaa5 |
File details
Details for the file datasette_create_view-0.1-py3-none-any.whl
.
File metadata
- Download URL: datasette_create_view-0.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef14d23504f96bc3a9798c99c5c49b251c9b1272325b3df4dae32843a4b39a88 |
|
MD5 | 7eec52ed18335f81bb34aae88b58e443 |
|
BLAKE2b-256 | b878f6f35ca4582b42debe8192d99f608656a777773cb20ddabbc72b3b4d5aa0 |