Flush
Ensures all the changes are written to disk.
- Returns:
- The result of the operation, includes the number of rows affected by the operation or an error if the operation failed.
const result = db.flush();
if (result.success) {
console.log(`Flushed ${result.data} rows`);
} else {
console.log(result.error.message);
}