Embeds a DuckDB terminal into a container element.
This is an alias for createTerminal provided for semantic clarity when embedding the terminal into an existing page.
Configuration options for the terminal
A promise that resolves to the initialized terminal instance
const terminal = await embed({ container: '#sql-editor', theme: 'dark', welcomeMessage: false,}); Copy
const terminal = await embed({ container: '#sql-editor', theme: 'dark', welcomeMessage: false,});
Embeds a DuckDB terminal into a container element.
This is an alias for createTerminal provided for semantic clarity when embedding the terminal into an existing page.