-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcsv_import.sql
More file actions
31 lines (27 loc) · 1.09 KB
/
Copy pathcsv_import.sql
File metadata and controls
31 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SELECT 'dynamic' AS component,
sqlpage.run_sql('shell.sql')
AS properties;
select
'form' as component,
'CSV import' as title,
'Load data' as validate,
'csv_process.sql' as action;
select
'expense_data_input' as name,
'file' as type,
'text/csv' as accept,
'Expenses' as label,
'Upload a CSV with columns as id,dt,account,payee, category, payment, deposit,net etc.' as description,
TRUE as required;
select
'alert' as component,
'Warning' as title,
'Note that about 2 minutes may be needed to load 10K records. There is no progress bar and database will be locked. Please wait till you get a completion message!' as description,
'alert-triangle' as icon,
'yellow' as color;
select
'alert' as component,
'Warning' as title,
'EXISTING RECORDS IN THE DB WILL BE DELETED!!!' as description,
'alert-triangle' as icon,
'yellow' as color;