MenableDefensive
Bun

method

sqlite.DatabaseSync.enableDefensive

active: boolean
): void;

Enables or disables the defensive flag. When the defensive flag is active, language features that allow ordinary SQL to deliberately corrupt the database file are disabled. See SQLITE_DBCONFIG_DEFENSIVE in the SQLite documentation for details.

@param active

Whether to set the defensive flag.