Skip to content

Commit

Permalink
remove copy functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoYankee committed Jul 13, 2024
1 parent fb78d5c commit a52594f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 88 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ Structure the database tables with drizzle
npm run drizzle:migrate
```

### Data loading
Load the data into the tables. Under the hood, this uses the Postgres COPY command.

```sh
npm run pg:copy
```

## Local development
The OpenAPI documentation and the API implementation complement each other.
The OpenAPI documentation is written first, defining expectations for endpoints.
Expand Down
8 changes: 0 additions & 8 deletions db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,3 @@ RUN apt update
RUN apt install -y postgresql-15-postgis-3

WORKDIR /var/lib/postgresql

ARG STORAGE_URL
ADD --chown=postgres $STORAGE_URL/tables/borough.csv borough.csv
ADD --chown=postgres $STORAGE_URL/tables/land_use.csv land_use.csv
ADD --chown=postgres $STORAGE_URL/tables/tax_lot.csv tax_lot.csv
ADD --chown=postgres $STORAGE_URL/tables/zoning_district.csv zoning_district.csv
ADD --chown=postgres $STORAGE_URL/tables/zoning_district_class.csv zoning_district_class.csv
ADD --chown=postgres $STORAGE_URL/tables/zoning_district_zoning_district_class.csv zoning_district_zoning_district_class.csv
72 changes: 0 additions & 72 deletions db/query/copy.sql

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"pg:configure": "ts-node ./db/query.ts configure",
"pg:copy": "ts-node ./db/query.ts copy",
"drizzle:migrate": "drizzle-kit migrate",
"drizzle:generate": "drizzle-kit generate",
"redoc:build": "redocly build-docs openapi/openapi.yaml --output openapi/index.html",
Expand Down

0 comments on commit a52594f

Please sign in to comment.