mirror of
https://github.com/zadam/trilium.git
synced 2024-11-17 13:14:44 +08:00
14 lines
No EOL
258 B
JavaScript
14 lines
No EOL
258 B
JavaScript
"use strict";
|
|
|
|
const sql = require('../../services/sql');
|
|
const log = require('../../services/log');
|
|
|
|
async function vacuumDatabase() {
|
|
await sql.execute("VACUUM");
|
|
|
|
log.info("Database has been vacuumed.");
|
|
}
|
|
|
|
module.exports = {
|
|
vacuumDatabase
|
|
}; |