gitwtfhub

wtf is mo-sql-parsing?

tobymao/mo-sql-parsing — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2021-07-24

1Audience · developerComplexity · 2/5DormantSetup · easy

TL;DR

A library that translates SQL queries into structured JSON (and partially back), so non-SQL data stores can be queried using familiar SQL syntax.

Mindmap

mindmap
  root((mo-sql-parsing))
    What it does
      SQL to JSON
      JSON to SQL partial
      Read only queries
    Tech stack
      Python
    Use cases
      Query translation
      Dashboard SQL input
      Multi backend support
    Audience
      Backend developers
      Dashboard builders
    Features
      Subqueries
      WITH clauses
      Window functions

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Let users write standard SQL then translate it to JSON for querying non-SQL data stores like MongoDB or Elasticsearch.

REASON 2

Build a dashboard where users query proprietary data stores using familiar SQL syntax.

REASON 3

Parse SQL queries into a structured, machine-readable format for analysis or transformation.

REASON 4

Generate SQL from a JSON query structure for supported cases.

What's in the stack?

Python

How it stacks up

tobymao/mo-sql-parsing0xkinno/neuralvault0xmayurrr/ai-contractauditor
Stars111
LanguageTypeScriptTypeScript
Last pushed2021-07-24
MaintenanceDormant
Setup difficultyeasyhardeasy
Complexity2/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Read-only query parsing, does not support insert or update statements.

Yoink these prompts

Prompt 1
Show me how to convert a SQL SELECT query into JSON using mo-sql-parsing.
Prompt 2
Help me integrate mo-sql-parsing so users can query my Elasticsearch backend with SQL.
Prompt 3
Explain how mo-sql-parsing handles subqueries and window functions.
Prompt 4
Write a script that parses a batch of SQL queries into JSON with mo-sql-parsing.

Frequently asked questions

wtf is mo-sql-parsing?

A library that translates SQL queries into structured JSON (and partially back), so non-SQL data stores can be queried using familiar SQL syntax.

Is mo-sql-parsing actively maintained?

Dormant — no commits in 2+ years (last push 2021-07-24).

How hard is mo-sql-parsing to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is mo-sql-parsing for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.