Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SET

Synopsis

SET variable = value

Description

Sets a session variable that controls REPL behavior. Session variables persist for the duration of the session and are reset when the REPL exits. Variable names are case-insensitive.

Parameters

variable
The name of the session variable to set.
value
The value to assign. Can be a string (in single quotes), a boolean (TRUE or FALSE), or an unquoted identifier.

Recognized Variables

VariableValuesDescription
output_format / FORMAT'json', 'table'Controls output format for query results
verboseTRUE, FALSEEnable verbose output for debugging
AUTOCOMMITTRUE, FALSEAutomatically save changes after each mutation

Examples

Set output format to JSON

SET output_format = 'json';

Enable verbose mode

SET verbose = TRUE;

Enable autocommit

SET AUTOCOMMIT = TRUE;

See Also

SHOW STATUS, OPEN PROJECT