apache / apache/datafusion-sqlparser-rs
ast: provider builders for convenient programmatic construction
- Linguagem predominante
- Rust
- Estrelas
- 3.5k
- Forks
- 774
- Merge médio
- 4d 9h
- PRs com merge (30d)
- 17
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
A issue aponta sqlparser::ast e uma feature opcional de builder derivada de bon como pontos de entrada; inspecione como as estruturas AST e as features opcionais estão definidas atualmente. O resultado deve ser uma abordagem de builder acordada e utilizável para as estruturas AST relevantes, reduzindo a necessidade de formatar strings SQL manualmente.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- rust, sql
- Domínio
- backend-api-design, databases
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 35/100