Dialect translation: read in one dialect, generate in another

Aperta
#25 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, sql
Ambito
backend, security

Direzione di ricerca

Start in src/sqlguardllm/guard.py where check() parses and generates SQL, and in src/sqlguardllm/policy.py where the policy options are defined. Add an output_dialect option so parsing uses dialect and generation uses output_dialect, then confirm row filters and limits render as TOP or FETCH FIRST. Tests go in tests/test_rules.py for postgres to tsql, postgres to oracle and mysql to postgres. Done when those three conversions pass; note the issue depends on #2 and is unassigned with no comments yet.

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

Descrizione

area:dialects size:s type:feature
Goal

Let a model that writes PostgreSQL target SQL Server, Oracle or any other dialect sqlglot supports.

Acceptance criteria
  • output_dialect policy option; check() parses with dialect and generates with output_dialect
  • Row filters and limits render in the output dialect (TOP, FETCH FIRST)
  • Tests: postgres → tsql, postgres → oracle, mysql → postgres
Relevant files
  • src/sqlguardllm/guard.py
  • src/sqlguardllm/policy.py
  • tests/test_rules.py
Size

S (up to half a day)

Notes
Lingua principale
Python
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jmmana/sqlguardllm

Tutte le issue di jmmana/sqlguardllm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.