DuckDbBootstrap

A class that is being used to initialize the necessary settings for the DuckDBConnection object.

This class initializes the necessary dependencies for the DuckDBConnection object — the DuckDbDbSetting, DuckDbDbHelper and DuckDbStatementBuilder — and registers them via their respective mappers.

Unless disabled via addDefaultHandlers, it also maps DuckDbStreamToByteArrayPropertyHandler and DuckDbTimeOnlyToTimeSpanPropertyHandler at the type level, so every byte[] property (BLOB columns) and TimeSpan property (TIME columns) is converted automatically, with no attribute or manual mapping required. An explicit per-property handler still takes precedence over these defaults.

Properties

Name Description
IsInitialized Returns true once the initialization has completed.

Usability

Call DuckDbConfiguration.UseDuckDb() during application start-up; it triggers this class internally.

GlobalConfiguration
    .Setup()
    .UseDuckDb();

Initialization is a one-time, idempotent operation — calling UseDuckDb() more than once has no additional effect.