-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor write image * Refactor write image II * Update gitignore * Refactor query test * Format code * Add docker compose yaml * Populate test data * Fix clippy warnings * Fix pipeline * Fix pipeline II * Fix pipeline III
- Loading branch information
Showing
8 changed files
with
115 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '3' | ||
services: | ||
postgres: | ||
volumes: | ||
- ./test_data:/docker-entrypoint-initdb.d | ||
image: postgres:16-alpine | ||
restart: "no" | ||
ports: | ||
- "${DB_PORT}:5432" | ||
environment: | ||
POSTGRES_USER: "${DB_USER}" | ||
POSTGRES_PASSWORD: "${DB_PASSWORD}" | ||
POSTGRES_DB: "${DB_NAME}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE account ( | ||
id serial primary key, | ||
first_name character varying, | ||
last_name character varying, | ||
email character varying NOT NULL | ||
); | ||
|
||
COPY account(first_name, last_name, email) | ||
FROM | ||
'/docker-entrypoint-initdb.d/contacts.csv' DELIMITER ',' CSV HEADER; |
Oops, something went wrong.