Search Shortcut cmd + k | ctrl + k

Creates chaos! ⋆✴︎˚。⋆ Chaos allows you to throw any type of DuckDB exception, or to raise a SIGSEGV, SIGABRT, or SIGBUS signal.

Maintainer(s): taniabogatsch

Compatibility Matrix

This table covers all DuckDB releases that have not reached end-of-life, including LTS releases, and shows the 2 most recent patch releases of each. Older patch releases are not listed, but the extension may be available for them as well.

Platform 1.4.4 1.4.5 1.5.5 1.5.6 2.0.0
Linux AMD64
Linux ARM64
macOS AMD64
macOS ARM64
Windows AMD64
Windows ARM64
WebAssembly

Installing and Loading

INSTALL chaos FROM community;
LOAD chaos;

Example

-- Throw exceptions!
SELECT chaos_exception('hello', 'CATALOG');
SELECT chaos_exception('hello', 'INTERNAL');
SELECT chaos_exception('hello', 'FATAL');

-- Raise signals!
SELECT chaos_signal('SIGSEGV');
SELECT chaos_signal('SIGABRT');
SELECT chaos_signal('SIGBUS');

About chaos

Creates chaos! ⋆✴︎˚。⋆ Chaos allows you to throw any type of DuckDB exception, or to raise a SIGSEGV, SIGABRT, or SIGBUS signal. Signals do not work on Windows.

Added Functions

function_name function_type description comment examples
chaos_exception scalar NULL NULL  
chaos_signal scalar NULL NULL  

Overloaded Functions

This extension does not add any function overloads.

Added Types

This extension does not add any types.

Added Settings

This extension does not add any settings.