Fix database setup, test encryption and repositories - all working
Co-authored-by: southseact-3d <217551146+southseact-3d@users.noreply.github.com>
This commit is contained in:
@@ -32,11 +32,14 @@ function initDatabase(databasePath, options = {}) {
|
||||
|
||||
// Initialize database with options
|
||||
const dbOptions = {
|
||||
verbose: options.verbose ? console.log : null,
|
||||
fileMustExist: false,
|
||||
timeout: options.timeout || 5000,
|
||||
...options
|
||||
};
|
||||
|
||||
// Add verbose if it's a function
|
||||
if (options.verbose && typeof options.verbose === 'function') {
|
||||
dbOptions.verbose = options.verbose;
|
||||
}
|
||||
|
||||
db = new Database(databasePath, dbOptions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user