Translation · Optimization · Batch · Validation

SQLForge — unified SQL processing

A single engine for dialect transpilation, query optimization, restructuring, function mapping, and syntax validation — exposed through REST APIs and deployable on-premise behind your firewall.

FastAPI OpenAPI / Swagger Batch translate 30+ dialects STTM & lineage
What SQLForge does

Pipe legacy and cloud SQL through one service: translate statements, optimize plans, split or combine queries, map functions per dialect pair, and validate before cutover.

  • POST /translate-sql, /translate-sql-batch
  • POST /optimize-sql, /convert-subqueries-to-cte
  • POST /map-function, /validate-sql
  • GET /supported-dialects, /health

Interactive docs at /docs and /redoc when self-hosted.

30+
SQL Dialects
Sources & targets in one matrix
REST
Unified API
Translate, optimize, validate, map
Batch
Multi-statement
Pipelines & CI integration
100%
Your Infrastructure
On-prem & air-gapped ready
SQLForge Engine

Optimization, restructuring, and transpilation in one toolkit

SQLForge goes beyond string replacement: CTE and join optimization, window and aggregation tuning, Teradata-style calculated fields, subquery-to-CTE conversion, query splitting, index suggestions, security scanning, and cost profiling — all callable from the same service surface as translation.

SQL translation & dialect conversion

Full-statement transpilation with per-dialect function mapping. Batch endpoints for folders of SQL, plus GET-based translation for quick tests.

  • /translate-sql and /translate-sql-batch
  • /map-function for single-function parity checks
  • /validate-sql for syntax checks by dialect

Query optimization

Rewrite queries for clearer plans: CTE folding, join reordering, aggregation and window optimizations, parallel hints where applicable.

  • /optimize-sql with strategy options
  • CTE, join, aggregation, and window modules
  • NULL handling and COALESCE suggestions
📋

Restructuring & modularization

Break very long SQL into maintainable pieces, combine scripts as CTE chains, and convert correlated subqueries to readable CTEs.

  • /sqlbreaker, /split-query
  • /convert-subqueries-to-cte
  • /combine-queries
🔍

Schema & metadata

Detect tables and columns from SQL text, surface calculated fields, and emit DDL-oriented hints for documentation and migration packs.

  • /detect-schema
  • /detect-calculated-fields
  • Auto schema detection and DDL comments
🔒

Security & quality

Static analysis for injection patterns and risky constructs; maintenance hints and query profiling to estimate cost and bottlenecks.

  • Security analyzer for vulnerability patterns
  • Index suggestion from workload SQL
  • Query profiler and maintenance advisor hooks
🧪

ETL & SAS preprocessing

Integrate legacy SAS and macro-heavy pipelines: macro transforms and SQL extraction paths that feed the same translation and lineage stack.

  • /sqlmacros for SAS macro processing
  • Aligns with broader MigryX ETL migration suite
REST API

FastAPI service with OpenAPI documentation

Run SQLForge as a single process (for example uvicorn) and integrate from IDEs, pipelines, or internal portals. Same routes support interactive Swagger UI and machine clients.

POST
/translate-sql

Translate full SQL between dialects with function mapping applied.

POST
/translate-sql-batch

Multiple statements or files in one request for bulk migration jobs.

GET
/supported-dialects

List source and target dialects available for the running build.

POST
/validate-sql

Syntax validation for a chosen dialect before execution on target.

POST
/optimize-sql

Optimization passes: CTEs, joins, aggregations, and more.

GET
/health

Liveness for load balancers and Kubernetes probes.

Full endpoint list includes encode/decode helpers, dialect conversion, index suggestions, SQL breaking, and unified / root discovery — see OpenAPI when deployed.

Lineage & STTM

Column-level lineage and Source-to-Target Mapping

SQLForge powers fine-grained lineage: column-to-column hops, transformation classification, multi-step workflows, and STTM documentation — with exports to JSON, Excel, and interactive HTML reports for catalogs and governance.

  • Column-level lineage with join, aggregate, CASE, and window metadata
  • STTM generation and stored-procedure STTM integration in workflows
  • HTML reports with tabbed navigation; Excel multi-sheet exports
  • OpenLineage-compatible transformation types where applicable
-- Lineage captures expression-level transforms
SELECT UPPER(TRIM(c.name)) AS display_name
  FROM customers c
  JOIN regions r ON c.region_id = r.id;

→ Column hops: customers.name → TRIM → UPPER → display_name
+ join edge customers / regions
Deployment

Runs where your SQL lives

Deploy SQLForge alongside MigryX migration projects: same branding, same compliance story — no requirement to send production SQL to a third-party SaaS if your policy forbids it.

🔒

On-premise & air-gapped

Host the FastAPI service and optional web UI inside your network. Ideal for regulated environments that need translation and lineage without cloud egress.

💻

Web UI & automation

Optional browser UI for ad-hoc operations; teams wire the same endpoints into CI/CD for automated regression on translated SQL.

SQLForge & MigryX

See SQLForge inside a full migration assessment

Pair the engine with MigryX SQL migration: inventory, dialect classification, pilot translations, and validation — with SQLForge as the processing backbone.

  • Walkthrough of translation, optimization, and API integration
  • Alignment with enterprise pilot and on-prem deployment options
  • Lineage and STTM outputs for your sample workloads
Discovery
Free
Assessment & demo
Schedule Now
Enterprise engagements per scope

SQLForge + MigryX — from API to full SQL migration

Use SQLForge for programmatic translation and optimization, or fold it into a complete MigryX program covering parsers, pilots, and validation across 15+ legacy dialects.