Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

sqlbabel-cli

Latest version: v0.30.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: kvlonge
4 Stars
0 Forks
4 Versions
Rust Repo language

Scan summary

sqlbabel-cli was last scanned on 29 Nov 2026 at version 0.30.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.30.0.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.30.0 LATEST 29 Nov 2026 No rules fired
0.29.0 29 Nov 2026 No rules fired
0.28.0 28 Nov 2026 No rules fired
0.0.1 28 Nov 2026 Not shown

No rules fired in 0.30.0

Findings

Findings for v0.30.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.30.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Why SQLBabel?

SQL that runs on two engines doesn't always return the same answer. NULLs, decimal arithmetic and casts can behave differently.

SQLBabel checks its conversion rules against real results from the source warehouse. It handles those differences deliberately and gives you precise diagnostics when it can't convert a query - not plausible-looking SQL and crossed fingers.

SQLBabel's original Snowflake tokenizer, parser and syntax tree started as a modified fork of Polyglot, a Rust SQL transpiler inspired by SQLGlot. The other dialects' parsers, the translation to DuckDB, the typing and the recorded evidence behind them are SQLBabel's own.

  • Proven rules. Every conversion rule is checked against real results recorded on the warehouse.
  • A precise no. When a query won't translate, you get a code, the exact span and the reason.
  • Check early. Catch invalid SQL before it reaches the warehouse.
  • See what's blocking you. Scan a SQL project to find what converts and what needs attention.
  • Choose what to accept. Allow or refuse each known difference in sqlbabel.toml.
  • Test locally. Run converted queries on DuckDB against small fixtures, in tests and CI.

Get started

pip install sqlbabel

# Convert your first query
echo "SELECT 1 AS total" | sqlbabel convert --no-config

# Check a SQL file
sqlbabel check query.sql

# Convert a query using the tables in sources/*.yml
sqlbabel convert query.sql

Or try the playground - no installation needed.

See the supported dialects and coverage, project guide and defaults for known differences for the details.

Use it from Python

import sqlbabel

result = sqlbabel.convert(
    sql="SELECT 1 AS total",
    options=sqlbabel.ConvertOptions(no_config=True),
)

Python API

Running the suites

SQLBabel's parsers and conversion rules are checked against evidence recorded on the real engines. Rerunning it needs no account:

git clone https://github.com/sqlstack-io/sqlbabel && cd sqlbabel
uv sync
make check-syntax DIALECT=snowflake    # rerun the parser against recorded syntax evidence
make check-convert DIALECT=snowflake   # replay recorded translations on DuckDB
Command What it does
make pending DIALECT=snowflake What isn't recorded yet, in both suites
make check-syntax DIALECT=snowflake Rerun the parser against recorded evidence (offline)
make record-syntax DIALECT=duckdb Record evidence for new syntax cases
make check-convert DIALECT=snowflake [CASES=temporal] Replay recorded translations on DuckDB (offline)
make record-convert DIALECT=snowflake Record new translation cases on Snowflake
make verify-changed Replay only the cases whose conversion or recording changed since its last run
make check-merge The static checks and the Rust tests every change must pass
make test-crate CRATE=sqlbabel-evidence One crate's tests
make python-api Build the Python module and run its API tests

A pull request runs what its changed files need. Documentation and website changes build and check the site. Other changes run make check-merge, the Python tests and the replay. The replay reuses main's judgement for every case whose conversion and recording are unchanged, and replays only the rest. A change under one of the full-replay paths in scripts/replay_scope/constants.py replays every case: the DuckDB pin, the lock files, the replay, comparison and policy crates, the error kinds, CI's toolchain and the evidence pin. A change outside every crate the sqlbabel binary is built from replays nothing.

Recording needs the dialect's engine: DuckDB and SQLite record locally, while Snowflake, BigQuery and Databricks need a connection. Recording Snowflake syntax evidence isn't public yet. make help lists every target.

Credits

SQLBabel wouldn't exist without two projects:

  • Polyglot by Tobias (@tobilg). SQLBabel's original Snowflake tokenizer, parser and syntax tree started as a modified fork of Polyglot's, and much of that code is still his. The other dialects' parsers are SQLBabel's own. Tobias also fixed many issues I reported while building SQLBuild on Polyglot.
  • SQLGlot by Toby Mao and contributors, for years of work on SQL transpilation that this space builds on.

Both are MIT licensed. Their licence texts are in THIRD_PARTY_NOTICES and ship with every release.

SQLBabel goes a different way from both on translation. It doesn't rewrite the tree and print it out. It checks each rule against recorded warehouse results and refuses what it can't prove.


Built in Rust. Free and open source. Apache 2.0.

Questions and feedback are welcome on Discord.

Part of SQLStack.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases sqlbabel-cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229