(dataDir: string)
| 21 | const toLibsqlFileUrl = (path: string): string => pathToFileURL(resolve(path)).href; |
| 22 | |
| 23 | const ownerLockPath = (dataDir: string): string => { |
| 24 | mkdirSync(dataDir, { recursive: true }); |
| 25 | // realpath collapses symlinked EXECUTOR_DATA_DIR values so normal local |
| 26 | // installs contend on one lock inode. It intentionally does not claim to |
| 27 | // detect hardlinked/bind-mounted data.db files in distinct real directories, |
| 28 | // nor to make network-filesystem locks reliable. |
| 29 | return join(realpathSync(dataDir), LOCK_DATABASE_FILENAME); |
| 30 | }; |
| 31 | |
| 32 | const isRecord = (value: unknown): value is Record<string, unknown> => |
| 33 | typeof value === "object" && value !== null; |
no outgoing calls
no test coverage detected