MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / LockError

Method LockError

src/util/fd-vfs.cpp:339–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337 }
338
339 static int LockError(int err, int fallback) {
340 switch (err) {
341 case EACCES:
342 case EAGAIN:
343 case ETIMEDOUT:
344 case EBUSY:
345 case EINTR:
346 case ENOLCK:
347 return SQLITE_BUSY;
348 case EPERM:
349 return SQLITE_PERM;
350 default:
351 return fallback;
352 }
353 }
354
355 // Common I/O methods (for main database files and journals)
356

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected