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.

It also registers DuckDbStreamToByteArrayPropertyHandler at the type level, keyed by Stream (the CLR type DuckDB.NET’s reader reports for a BLOB column). RepoDb.Core falls back to that registration whenever a property has no explicit handler of its own, so any byte[]-typed property reading from a BLOB column is converted automatically. An explicit per-property handler still takes precedence over this default.

There is no public Initialize() method on this class. Use DuckDbConfiguration.UseDuckDb() instead.

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.