UNPKG

sqlocal

Version:

SQLocal makes it easy to run SQLite3 in the browser, backed by the origin private file system.

9 lines 311 B
export async function mutationLock(mode, bypass, config, mutation) { if (!bypass && 'locks' in navigator) { return navigator.locks.request(`_sqlocal_mutation_(${config.databasePath})`, { mode }, mutation); } else { return mutation(); } } //# sourceMappingURL=mutation-lock.js.map