SQL
Last updated
Was this helpful?
Last updated
Was this helpful?
Dolt's SQL engine is built as a layer on top of its storage engine. This allows us to implement non-SQL operations, such as the CLI commands, directly against the storage layer. It also leaves the door open to build additional database dialects on top of Dolt in the future.
The SQL engine is implemented by three different open source projects, listed below.
is a MySQL sharding management system. It implements the MySQL parser and the MySQL server, including the wire protocol.
is a storage agnostic SQL query engine written in pure Go. It implements a query analyzer and execution engine, and defines interfaces for storage backend integrators (like Dolt) to implement.
The Dolt project itself implements the interfaces defined in to make the Dolt storage engine available for reads and writes in a SQL context. It also implements many System variables and custom SQL functions.
Dolt is responsible for the various interfaces to start, stop, configure and manage SQL servers.