Closed
Description
i'm trying to embed a typeorm app with sqlite db in an ISO:
Basically the conf is:
export const dataSourceOptions: DataSourceOptions = {
name: 'DB',
type: 'better-sqlite3',
database: 'db.db',
migrationsRun: false,
logging: true,
synchronize: false,
readonly: true
};
when running locally, or setting an absolute path like database: 'C:\aaaa\db.db' all is working, while running from a mounted iso, so D: is readonly and database in D:\db.db
, i'm getting:
Error: EPERM: operation not permitted, mkdir 'D:\'
just for reference in these issue similar issues are getting managed
#628
#640
maybe the issue is "just" this line that is trying to check if the folder exists
https://github.com/WiseLibs/better-sqlite3/blob/master/lib/database.js#L64
Metadata
Metadata
Assignees
Labels
No labels