DuckDB Terminal - v0.6.0
    Preparing search index...

    Interface TerminalInterface

    Interface for interacting with the terminal from commands.

    This interface is passed to command handlers and provides methods for writing output and executing SQL.

    interface TerminalInterface {
        cancelQuery(): Promise<boolean>;
        clear(): void;
        executeSQL(sql: string): Promise<QueryResult | null>;
        getTheme(): "dark" | "light";
        refreshPrompt(): void;
        setTheme(theme: "dark" | "light"): void;
        write(text: string): void;
        writeln(text: string): void;
    }

    Implemented by

    Index