apache / apache/datafusion-sqlparser-rs

help wanted: extend cli example for batch processing

Offen
#271 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
Rust
Sterne
3.5k
Forks
772
Ø Merge
4 T. 9 Std.
Gemergte PRs (30 T.)
17

Beschreibung

it looks like the sqlparser-rs can do what I need
- code of views is stored in mssqlserver
- json parser result should be stored into mssqlserver
- I wan't to be able to do this outside the rust environment, some compilation into a windows program is required to use this program also without installing rust on other machines

if it is to complicated to read the sql source from mssqlserver and to store the json result into mssqlserver it would be also possible:
- I can export from mssqlserver into sql text files
- sql files could be used as input for the cli
- json output should be stored into text files with the same BaseFileName (abc.sql => abc.json), but maybe into another folder
- I can import these json files into mssqlserver

Maybe the example cli.rs could be extended to export the json into a file?
And maybe it could also be extended to parse a directory containing sql-files, and to use an optional parameter for the folder for generated json files?

I never before used Rust. I could try to learn the basics of rust to implement this. But maybe it is much more easy to do for developers experienced in rust then for me, which I am a database specialist, but not a rust developer?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit dem Lesen der Beispiel-Datei cli.rs und kläre, ob der Umfang die dateibasierte Stapelverarbeitung oder die MSSQL-Integration umfasst. Definiere das Ein- und Ausgabeverhalten, einschließlich der Verzeichnisbehandlung und der Zuordnung übereinstimmender .sql/.json-Basisnamen, und überprüfe anschließend, ob der gewählte Workflow als Windows-Programm ohne installierten Rust ausgeführt werden kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust, sql
Bereich
cli, databases
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.