Added new database rustydb (#6632)

Co-authored-by: SamTv12345 <samtv12345@samtv12345.com>
This commit is contained in:
SamTV12345 2024-09-05 16:06:16 +02:00 committed by GitHub
parent d010d53195
commit d4cbbf18e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 245 additions and 14 deletions

View file

@ -169,11 +169,11 @@ exports.authenticationMethod = 'sso'
/*
* The Type of the database
*/
exports.dbType = 'dirty';
exports.dbType = 'rustydb';
/**
* This setting is passed with dbType to ueberDB to set up the database
*/
exports.dbSettings = {filename: path.join(exports.root, 'var/dirty.db')};
exports.dbSettings = {filename: path.join(exports.root, 'var/rusty.db')};
/**
* The default Text of a new pad
@ -941,6 +941,11 @@ exports.reloadSettings = () => {
logger.warn(`${dirtyWarning} File location: ${exports.dbSettings.filename}`);
}
if (exports.dbType === 'rustydb') {
exports.dbSettings.filename = absolutePaths.makeAbsolute(exports.dbSettings.filename);
logger.warn(`File location: ${exports.dbSettings.filename}`);
}
if (exports.ip === '') {
// using Unix socket for connectivity
logger.warn('The settings file contains an empty string ("") for the "ip" parameter. The ' +

View file

@ -70,7 +70,7 @@
"superagent": "10.1.0",
"tinycon": "0.6.8",
"tsx": "4.19.0",
"ueberdb2": "^4.2.94",
"ueberdb2": "^4.2.100",
"underscore": "1.13.7",
"unorm": "1.6.0",
"wtfnode": "^0.9.3"
@ -110,7 +110,8 @@
"split-grid": "^1.0.11",
"supertest": "^7.0.0",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
"vitest": "^2.0.5",
"rusty-store-kv": "^1.1.4"
},
"engines": {
"node": ">=18.18.2",