datasette-query-history-0.2.3
توضیحات
Datasette plugin that keeps a list of the queries you've run and lets you rerun them.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datasette-query-history-0.2.3 |
| نام | datasette-query-history |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bret Walker |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/bretwalker/datasette-query-history |
| آدرس اینترنتی | https://pypi.org/project/datasette-query-history/ |
| مجوز | Apache License, Version 2.0 |
# datasette-query-history
[](https://pypi.org/project/datasette-query-history/)
[](https://github.com/bretwalker/datasette-query-history/releases)
[](https://github.com/bretwalker/datasette-query-history/actions?query=workflow%3ATest)
[](https://github.com/bretwalker/datasette-query-history/blob/main/LICENSE)
Datasette plugin that keeps a list of the queries you've run and lets you rerun them.
## Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-query-history
## Usage
Click the `Query History` button on the SQL editor page to see previous queries.
Click the ⬆︎ button to replace the current query with a previous query.
Click the `Clear Query History` button to clear the list previous queries.
<img src="https://raw.githubusercontent.com/bretwalker/datasette-query-history/main/docs/datasette-query-history-example1.png" width="350px" alt="Screenshot of plugin">
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-query-history
python3 -mvenv venv
source venv/bin/activate
Or if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
نیازمندی
| مقدار | نام |
|---|---|
| - | datasette |
| - | pytest |
| - | pytest-asyncio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl datasette-query-history-0.2.3:
pip install datasette-query-history-0.2.3.whl
نصب پکیج tar.gz datasette-query-history-0.2.3:
pip install datasette-query-history-0.2.3.tar.gz