Minor changes

This commit is contained in:
Francesco
2023-10-14 16:21:17 +02:00
parent e07ae2e8f4
commit e06422c105
3 changed files with 9 additions and 5 deletions

View File

@@ -87,8 +87,6 @@ public class DataExportController {
.header(HttpHeaders.CONTENT_DISPOSITION,
"attachment; filename=\"export_" + schema.getJavaClass().getSimpleName() + ".xlsx\"")
.body(toXlsx(sheetName, results, fields, raw));
case JSONL:
throw new DbAdminException("JSON TODO");
default:
throw new DbAdminException("Unable to detect export format");
}

View File

@@ -1,5 +1,6 @@
package tech.ailef.dbadmin.external.dto;
public enum DataExportFormat {
CSV, XLSX, JSONL;
CSV,
XLSX;
}