Skip to main content

Create a SQL view from a query

Project description

datasette-create-view

PyPI Changelog Tests License

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-create-view-0.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

datasette_create_view-0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for datasette-create-view-0.1.tar.gz
Algorithm Hash digest
SHA256 b8dd84c511c18f8de549674061f7c85d91711a429624ec108d4f1b95945423e1
MD5 b99c52c7c0078c30018c1ca7329a40e8
BLAKE2b-256 5855a6a93b4da09a6eae40102746088f61dd6f74bdf81dd23012d825ab43eaa5

See more details on using hashes here.

File details

Details for the file datasette_create_view-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_create_view-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef14d23504f96bc3a9798c99c5c49b251c9b1272325b3df4dae32843a4b39a88
MD5 7eec52ed18335f81bb34aae88b58e443
BLAKE2b-256 b878f6f35ca4582b42debe8192d99f608656a777773cb20ddabbc72b3b4d5aa0

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