simonw / simonw/datasette

Plugin Hooks for "compile to SQL" languages

Open
#2,188 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugins
Dominant language
Python
Stars
11.5k
Forks
904
Avg merge
4d 17h
Merged PRs (30d)
18

Description

There's a ton of tools/languages that compile to SQL, which may be nice in Datasette. Some examples:

It would be cool if plugins could extend Datasette to use these languages, in both the code editor and API usage.

A few things I'd imagine a datasette-prql or datasette-logica plugin would do:

  • prql= instead of sql=
  • Code editor support (syntax highlighting, autocomplete)
  • Hide/show SQL

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Datasette's existing plugin support, code editor, and API entry points. Done means a plugin can expose a compile-to-SQL language such as PRQL or Logica, support its editor behavior, accept its query parameter, and control whether generated SQL is shown.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sql
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.