apache / apache/datafusion-sqlparser-rs

Implement SQL writer

Aperta
#18 10 commenti 9 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
3.5k
Fork
772
Merge medio
4g 9h
PR unite (30g)
17

Descrizione

It is often useful to be able to generate SQL from the AST. This opens up possibilities for SQL manipulation or translation. The write should recursively walk the AST and write SQL to a writer / output stream.

A secondary benefit of having a writer is that it often simplifies writing unit tests for the parser, since a SQL statement can be parsed and re-written and then the output can be compared with the input (ignoring whitespace differences)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Non è indicato alcun percorso di file o di test. Inizia individuando le definizioni dell'AST e i punti di ingresso del parser, quindi esamina gli unit test esistenti del parser. L'attività è completata quando l'AST analizzato viene scritto ricorsivamente come SQL tramite un writer o un flusso di output, con test di round-trip che confrontano le istruzioni analizzate e riscritte ignorando le differenze di spaziatura.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust, sql
Ambito
compilers, databases
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.