Skip to content

Commit f3cde47

Browse files
committed
DuckDB rewrite: minor tweaks
1 parent 8e828f7 commit f3cde47

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"node_modules"
1313
],
1414
"rules": {
15-
"no-unused-vars": "off",
15+
"no-unused-vars": "warn",
1616
"no-irregular-whitespace": "off"
1717
}
1818
}

cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ const {
4141
'stops-without-level-id': {
4242
type: 'boolean',
4343
},
44-
'lower-case-lang-codes': {
44+
'stops-location-index': {
4545
type: 'boolean',
4646
},
47-
'stops-location-index': {
47+
'lower-case-lang-codes': {
4848
type: 'boolean',
4949
},
5050
'stats-by-route-date': {

docs/import-metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ SELECT gtfs_via_postgres_options()
1515
-- {"schema": "public", "silent": false, "importStart": 1681417454781, "importMetadata": true, … }
1616
SELECT (gtfs_via_postgres_options())['tripsWithoutShapeId']
1717
-- true
18-
```
18+
```

docs/multiple-datasets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# importing multiple datasets into one DB
1+
# working with multiple datasets
22

33
Using `gtfs-via-postgres`, you can import more than one dataset into a single PostgreSQL database by importing them into separate [schemas](https://www.postgresql.org/docs/14/ddl-schemas.html). You can then run queries combine or compare data from them.
44

5-
As an example, let's import two datasets ([Paris](https://en.wikipedia.org/wiki/Île-de-France_Mobilités)' and [Berlin](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg)'s) into separate schemas:
5+
As an example, let's compare two datasets from [Paris](https://en.wikipedia.org/wiki/Île-de-France_Mobilités) and [Berlin](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg).
66

77
```shell
88
wget -U 'gtfs-via-postgres demo' -O paris.gtfs.zip 'https://eu.ftp.opendatasoft.com/stif/GTFS/IDFM-gtfs.zip'

example.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22

33
set -e
4+
set -u
45
set -o pipefail
56

67
2>&1 echo "importing into PostgreSQL:"
@@ -13,7 +14,7 @@ psql -c "$(cat <<- EOM
1314
SELECT
1415
trip_id, route_id,
1516
from_stop_id, t_departure,
16-
stop_sequence,
17+
from_stop_sequence,
1718
to_stop_id, t_arrival
1819
FROM connections
1920
WHERE trip_id = 'during-dst-1'

0 commit comments

Comments
 (0)