dolt-sql
execute SQL queries on versioned database
TLDR
Run SQL query
SYNOPSIS
dolt sql [options] [-q query]
DESCRIPTION
dolt sql provides SQL access to Dolt repositories. It supports MySQL-compatible SQL syntax for querying and modifying data in versioned tables.
The interactive shell offers tab completion and command history. Queries can read from any branch or commit using Dolt's SQL extensions, enabling time-travel queries across the repository history.
dolt sql-server starts a MySQL-compatible server allowing connections from standard MySQL clients, ORMs, and applications.
PARAMETERS
-q QUERY
SQL query to execute.-r FORMAT
Result format: tabular, csv, json, null.-b, --batch
Batch mode (no formatting).-x, --result-format
Vertical result format.--continue
Continue on error in batch mode.--help
Display help information.
CAVEATS
Some MySQL features not fully supported. Write queries modify working set (need commit). Large result sets may be slow to render. Server mode requires port availability.
HISTORY
dolt sql provides the primary data interaction interface for Dolt, implementing MySQL compatibility to enable use with existing SQL tools and knowledge.
