MloadExtension
Bun

method

sqlite.Database.loadExtension

extension: string,
entryPoint?: string
): void;

Load a SQLite3 extension

macOS requires a custom SQLite3 library to be linked because the Apple build of SQLite for macOS disables loading extensions. See Database.setCustomSQLite

Bun chooses the Apple build of SQLite on macOS because it brings a ~50% performance improvement.

@param extension

name/path of the extension to load

@param entryPoint

optional entry point of the extension