Emitted when a dot command is executed.
Command arguments
The command name (e.g., '.help')
Emitted when an error occurs.
The error message
Where the error originated (e.g., 'query', 'command')
Emitted when a file is loaded via drag-and-drop or file picker.
The filename
File size in bytes
File extension/type
Emitted when a SQL query completes (success or failure).
Execution time in milliseconds
Optionalerror?: stringError message if the query failed
The query result, or null if the query failed
The SQL statement that was executed
Emitted when a SQL query starts executing.
The SQL statement being executed
Emitted when the terminal is fully initialized and ready for input. The payload is an empty object.
Emitted when the terminal state changes.
The previous state
The new state
Emitted when the terminal theme changes.
Event payload types for all terminal events.
Use with DuckDBTerminal.on to subscribe to events.
Example