//#region src/memory/sqlite-pragmas.ts
/**
* Apply performance and safety PRAGMAs to a SQLite database connection.
* Safe to call on any connection — idempotent.
*/
function applySqlitePragmas(db) {
	db.exec("PRAGMA journal_mode = WAL");
	db.exec("PRAGMA synchronous = NORMAL");
	db.exec("PRAGMA mmap_size = 8388608");
	db.exec("PRAGMA cache_size = -2000");
	db.exec("PRAGMA temp_store = MEMORY");
}

//#endregion
export { applySqlitePragmas as t };