Skip to main content

Module runtime

Module runtime 

Source
Expand description

Process-wide engine lifecycle.

chDB installs signal handlers and starts threads for the whole process, not for a connection. Both facts are invisible from the connection API and both matter to a host that has its own signal handling or its own teardown sequence, so the controls for them live here.

Functionsยง

reset_signal_handlers
Restore every signal handler chDB installed to SIG_DFL.
shutdown
Stop the engine, joining every thread chDB started.
signal_handlers
Choose whether chDB installs process-wide signal handlers.