SQLite support

This commit is contained in:
Maxime-J 2022-08-11 17:32:00 +00:00
parent 2181ca4ec8
commit 578a96ee09
7 changed files with 319 additions and 5 deletions

View file

@ -12,12 +12,16 @@ function getDatabaseType() {
return 'postgresql';
}
if (type === 'file') {
return 'sqlite';
}
return type;
}
const databaseType = getDatabaseType();
if (!databaseType || !['mysql', 'postgresql'].includes(databaseType)) {
if (!databaseType || !['mysql', 'postgresql', 'sqlite'].includes(databaseType)) {
throw new Error('Missing or invalid database');
}