Support PRQL

Aberta
#1,150 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
28/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
rust, sql
Domínio
backend, database

Direção de pesquisa

Start by reading SQLPage’s query execution and run_sql implementation to understand how SQL statements are handled. Then investigate how PRQL could fit into query execution while preserving direct SQL for database writes; the issue does not identify specific files or tests. Done would mean an agreed integration design and PRQL support for queries without losing existing write support.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

enhancement

SQLPage is awesome!
I'm currently building larger and larger (internal) applications with it, but with increasing project size SQLPage's limitations become more and more apparent.

The main pain points for me are keeping things DRY and code organization.
While the run_sql function helps somewhat it's clunky and a bit limited as the only real vehicle for factoring out code.

Therefore I'd like to propose adding support for PRQL as a layer on top of (the query side of) SQL.

PRQL looks like a great complement/addition to SQLPage!
Apart from a more modern, concise and easier to read query syntax it also provides things like custom functions, a much richer "standard library" of predefined functions and -- hopefully soon -- a module system, which will allow importing declarations from other files with proper namespacing.

The only "problem" that SQLPage would have to work around is that PRQL is currently only focused on the query side of things and doesn’t plan on supporting writing to the database. So, we'd still need support for writing SQL directly for all the "non-SELECT" parts of the language.
I haven't really thought through how this might be achieved best.

But to me it looks like PRQL is something that SQLPage could definitely benefit from!

Linguagem predominante
Rust
Estrelas
2.6k
Forks
175
Merge médio
14h 16min
PRs com merge (30d)
43

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de sqlpage/SQLPage

Todas as issues de sqlpage/SQLPage

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.