Provide SQLPage syntax for code completion / IDEs

Aberta
#735 5 comentários 2 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
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
postgresql, rust, sql

Direção de pesquisa

The issue does not identify files, tests, or an implementation entry point. Start by reading the project documentation and exploring how SQLPage exposes its SQL functions and integrates with editors; the request is for completion and hinting alongside the chosen SQL dialect. Done means SQLPage syntax can be recognized by editors without the red error, while retaining dialect-specific SQL completion.

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

Descrição

enhancement
What are you building with SQLPage ?

All sorts of little tools ;) The latest is a simple system for storing and sharing diagrams using mermaid.

What is your problem ? A description of the problem, not the solution you are proposing.

I use different variants of IntelliJ and CoC with vim. Thanks to all the progress with language servers, autocompletion has really come on in the past few years. If sqlpage could somehow provide additional code completion / language server bindings that would be a real improvement to the developer experience. For example:

sqlpage.run_sql('chart/shell.sql')

gives a nasty red error in IntelliJ.

What are you currently doing ? Since your solution is not implemented in SQLPage currently, what are you doing instead ?

Trying to ignore the editor warnings.

A clear and concise description of what you want to happen.

The editor shows autocomplete / hinting for sqlpage along with those for the SQL type in question (I usually use postgresql).

A clear and concise description of any alternative solutions or features you've considered.

Creating a separate sqlpage schema, creating mimic functions and adding it to the editor schema resolution path.

Additional context
image
Intellij (rustrover) screenshot

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.