https://github.com/passcod/adventofcode22
Advent of Code 2022
https://github.com/passcod/adventofcode22
Last synced: 11 days ago
JSON representation
Advent of Code 2022
- Host: GitHub
- URL: https://github.com/passcod/adventofcode22
- Owner: passcod
- Created: 2022-12-02T01:34:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-06T11:45:29.000Z (over 3 years ago)
- Last Synced: 2026-01-12T14:11:22.204Z (3 months ago)
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2022: PostgreSQL
First create a database and load the schema with
```console
psql < schema.sql
```
Then each day is self-contained and written in PSQL:
```console
cd day01
psql < program.sql
```
The input is placed in `input.txt` alongside the program.
## Limitations
- PSQL syntax and macros are allowed
- PostgreSQL version is 14.5
- User running the code is a postgres superuser
- Extensions, PLPgSQL, others languages, etc *are* allowed but solutions should primarily be in SQL where possible.