apache / apache/datafusion-sqlparser-rs

ast: provider builders for convenient programmatic construction

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

Descrizione

I have a use case where I'm generating SQL strings, and in general having `sqlparser::ast` is quite good, but the structs are particularly painful to construct programatically. It'd be interesting if the ast structs offered an optional feature that had https://github.com/elastio/bon builders derived to build them.

Maybe somebody will teach me how to safely construct strings that I can then parse (that'd be fine! I just am not generally eager to be doing string formatting to produce sql, particularly given I don't have full control over the identifiers). For now I am generally just doing this formatting, but I don't love it.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

La issue indica sqlparser::ast e una feature opzionale di builder derivata da bon come punti di ingresso; esamina come sono attualmente definite le strutture AST e le feature opzionali. Il risultato dovrebbe essere un approccio di builder concordato e utilizzabile per le strutture AST pertinenti, che riduca la necessità di formattare manualmente stringhe SQL.

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

Valutazione

Stack tecnologico
rust, sql
Ambito
backend-api-design, databases
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.