Metadata-Version: 2.4
Name: datasette-syntaqlite
Version: 0.1
Summary: Lint Datasette queries with Syntaqlite
Author: Théophile Cantelobre
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/theophilec/datasette-syntaqlite
Project-URL: Changelog, https://github.com/theophilec/datasette-syntaqlite/releases
Project-URL: Issues, https://github.com/theophilec/datasette-syntaqlite/issues
Project-URL: CI, https://github.com/theophilec/datasette-syntaqlite/actions
Classifier: Framework :: Datasette
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: datasette
Requires-Dist: pydantic>=2.12.5
Requires-Dist: syntaqlite>=0.2.10
Dynamic: license-file

# datasette-syntaqlite

[![PyPI](https://img.shields.io/pypi/v/datasette-syntaqlite.svg)](https://pypi.org/project/datasette-syntaqlite/)
[![Tests](https://github.com/theophilec/datasette-syntaqlite/actions/workflows/test.yml/badge.svg)](https://github.com/theophilec/datasette-syntaqlite/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/theophilec/datasette-syntaqlite/blob/main/LICENSE)

Lint Datasette queries with Syntaqlite

## Installation

Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-syntaqlite
```
## Usage

This plugin uses [`syntaqlite`](https://docs.syntaqlite.com/main/) to lint SQL queries in Datasette. It monitors the input field and runs at each change.

## Development

To set up this plugin locally, first checkout the code. You can confirm it is available like this:
```bash
cd datasette-syntaqlite
# Confirm the plugin is visible
uv run datasette plugins
```
To run the tests:
```bash
uv run pytest
```
