File tree Expand file tree Collapse file tree 3 files changed +7
-33
lines changed Expand file tree Collapse file tree 3 files changed +7
-33
lines changed Original file line number Diff line number Diff line change @@ -13,39 +13,10 @@ CREATE TABLE "${opt.schema}".agency (
13
13
agency_phone TEXT,
14
14
agency_fare_url TEXT,
15
15
agency_email TEXT
16
- );
16
+ )
17
+ ` )
17
18
18
- COPY "${ opt . schema } ".agency (
19
- agency_id,
20
- agency_name,
21
- agency_url,
22
- agency_timezone,
23
- agency_lang,
24
- agency_phone,
25
- agency_fare_url,
26
- agency_email
27
- ) FROM STDIN csv;
28
- `
29
-
30
- const formatAgencyRow = ( a ) = > {
31
- return [
32
- a . agency_id || null ,
33
- a . agency_name || null ,
34
- a . agency_url || null ,
35
- a . agency_timezone || null ,
36
- a . agency_lang || null ,
37
- a . agency_phone || null ,
38
- a . agency_fare_url || null ,
39
- a . agency_email || null ,
40
- ]
19
+ // todo
41
20
}
42
21
43
- const afterAll = `\
44
- \\.
45
- `
46
-
47
- module . exports = {
48
- beforeAll,
49
- formatRow : formatAgencyRow ,
50
- afterAll,
51
- }
22
+ module . exports = importData
Original file line number Diff line number Diff line change 2
2
3
3
const getDependencies = ( opt , files ) => {
4
4
return {
5
+ agency : [
6
+ ] ,
5
7
}
6
8
}
7
9
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
module . exports = {
4
+ agency : require ( './agency' ) ,
4
5
}
You can’t perform that action at this time.
0 commit comments