Documentation
¶
Overview ¶
debug – tinySQL SQL diagnostic tool.
Parses and executes SQL statements against an in-memory tinySQL database, reporting the statement type, execution time, and results. Useful for quickly testing SQL compatibility and debugging query behaviour.
SQL can be provided via the -sql flag, as positional arguments, or read from stdin when no flags are given.
Usage:
debug -sql "SELECT 1 + 1 AS result" debug "CREATE TABLE t (id INT); INSERT INTO t VALUES (1); SELECT * FROM t" echo "SELECT 42 AS answer" | debug
Flags:
-sql SQL statement(s) to execute (semicolon-separated) -dsn Storage DSN (default: in-memory) -timing Print execution time for each statement -verbose Print statement type and extra diagnostics
Click to show internal directories.
Click to hide internal directories.