https://github.com/ericfreese/advent-of-code-2022-pgsql
PostgreSQL Solutions for 2022 Advent of Code
https://github.com/ericfreese/advent-of-code-2022-pgsql
Last synced: over 1 year ago
JSON representation
PostgreSQL Solutions for 2022 Advent of Code
- Host: GitHub
- URL: https://github.com/ericfreese/advent-of-code-2022-pgsql
- Owner: ericfreese
- Created: 2022-12-16T06:47:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T04:12:07.000Z (over 3 years ago)
- Last Synced: 2025-01-23T03:49:53.723Z (over 1 year ago)
- Language: Shell
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2022
Solutions using PostgreSQL.
## Usage
- Paste puzzle inputs into `inputs/??` files where `??` is the zero-padded day number (e.g. `01` for day 1).
- Run the postgres server via `./server` (requires docker).
- Run a solution via `./run solutions/??-?.sql` (requires psql).
- Once you get a correct answer, write it to `answers/??-?` where `??` is the zero-padded day number and `?` is the part number (e.g. `./run solutions/01-2.sql > answers/01-2`.
- Running a solution that has a corresponding file under `answers/` will output a diff of the current output against the recorded output, allowing for simple regression testing.