apache / apache/datafusion-sqlparser-rs
ast: provider builders for convenient programmatic construction
- Lenguaje dominante
- Rust
- Estrellas
- 3.5k
- Forks
- 772
- Merge medio
- 4 d 9 h
- PR fusionados (30 d)
- 17
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
El issue señala sqlparser::ast y una feature opcional de builder derivada de bon como puntos de entrada; inspecciona cómo están definidas actualmente las estructuras AST y las features opcionales. El resultado debería ser un enfoque de builder acordado y utilizable para las estructuras AST relevantes, que reduzca la necesidad de formatear manualmente strings SQL.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust, sql
- Área
- backend-api-design, databases
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100