// readme

Omni

SQL toolchain for multiple database engines. Each engine provides a parser, AST, and additional components such as catalog simulation and semantic analysis โ€” all in pure Go with zero dependencies.

Features

  • Zero dependencies โ€” pure Go, no CGo, no generated code at runtime
  • Full AST โ€” every parsed statement produces a complete abstract syntax tree
  • Position tracking โ€” every AST node carries byte-offset location info
  • Beyond parsing โ€” catalog simulation, DDL semantic analysis, and more per engine

Engines

Every engine lives in its own top-level directory and follows the same shape: ast/ holds the node types, parser/ the hand-written recursive descent parser, and further packages add capabilities on top. The table lists the packages each engine ships today.

EngineDirectoryPackages beyond ast + parser
PostgreSQLpg/catalog, completion, plpgsql, pgregress, splittest
Amazon Redshiftredshift/catalog, completion, analysis, plpgsql, compat, pgregress
MySQLmysql/catalog, completion, deparse, validate, scope,โ€ฆ