One syntax for every database. OmniQL is a Go library that translates universal queries into native PostgreSQL, MySQL, MongoDB, and Redis commands. No rewrites, no lock-in. Instantly. Free and open-source.




Core Philosophy
The OmniQL Philosophy
Your data layer is more than storage. It's the foundation your entire application builds on. OmniQL keeps your queries stable while everything underneath changes. Switch from MySQL to Postgres, add MongoDB for documents, Redis for caching. Same syntax, any backend. When your infrastructure evolves, your code doesn't have to. Migrations become config changes, not rewrites.
Universal Compiler
One language. Everywhere.
OmniQL is a compiler, not a wrapper. Every query becomes an AST, then instantly translates to native SQL for Postgres and MySQL, native commands for MongoDB, or native operations for Redis. You write once, the engine handles the rest.
Write Once
Multi-Database
One Syntax
Universal DDL
Define Once.
OmniQL handles more than queries. Define your tables once, the engine translates to native DDL for Postgres, MySQL, and MongoDB. AUTO becomes SERIAL or AUTO_INCREMENT. STRING becomes VARCHAR. Constraints like NOTNULL and UNIQUE just work.
Define Once
Portable
DB Agnostic
Benefits
Why Developers Choose OmniQL
The power of four databases. The simplicity of one.
FAQs
Frequently Asked Questions
Common questions about OmniQL architecture, performance, and compatibility.