Type guard to check if a database has enhanced methods.
The database to check
True if the database has .pragma() and .transaction() methods
.pragma()
.transaction()
import { isEnhanced } from '@photostructure/sqlite';if (isEnhanced(db)) { db.pragma('cache_size', { simple: true });} Copy
import { isEnhanced } from '@photostructure/sqlite';if (isEnhanced(db)) { db.pragma('cache_size', { simple: true });}
Type guard to check if a database has enhanced methods.