Provide SQLPage syntax for code completion / IDEs

Ouverte
#735 5 commentaires 2 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
postgresql, rust, sql

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Rust
Étoiles
2.6k
Forks
175
Merge moyen
14 h 16 min
PR mergées (30 j)
43

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de sqlpage/SQLPage

Toutes les issues de sqlpage/SQLPage

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.