{"id":26316849,"url":"https://github.com/nathanthorell/pg-snowfall-db","last_synced_at":"2026-05-17T13:34:03.245Z","repository":{"id":217781877,"uuid":"744311319","full_name":"nathanthorell/pg-snowfall-db","owner":"nathanthorell","description":"Basic PostgreSQL database to store snowfall data from NSIDC.  Uses Flyway for migrations.","archived":false,"fork":false,"pushed_at":"2025-01-21T18:22:09.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T19:29:56.387Z","etag":null,"topics":["flyway","postgresql","sqlfluff"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathanthorell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-17T03:11:20.000Z","updated_at":"2025-01-21T18:22:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"82b5b835-65be-4e98-8e31-416aba5ce72c","html_url":"https://github.com/nathanthorell/pg-snowfall-db","commit_stats":null,"previous_names":["nathanthorell/pg-snowfall-db"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanthorell%2Fpg-snowfall-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanthorell%2Fpg-snowfall-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanthorell%2Fpg-snowfall-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanthorell%2Fpg-snowfall-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanthorell","download_url":"https://codeload.github.com/nathanthorell/pg-snowfall-db/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732223,"owners_count":20338839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flyway","postgresql","sqlfluff"],"created_at":"2025-03-15T13:16:59.432Z","updated_at":"2026-05-17T13:33:58.217Z","avatar_url":"https://github.com/nathanthorell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Snowfall Database\n\nBasic PostgreSQL database to store snowfall data from [NOAA NCEI](https://www.ncei.noaa.gov/).  Uses Flyway for migrations.\n\n## Local Environment Configuration\n\nExample of expected environment variables:\n\n```bash\nPG_HOST=localhost\nPG_PORT=5432\nPG_DB=snowfall\nFLYWAY_USER=postgres\nFLYWAY_PASSWORD=YOUR_SECRET_PASSWORD_HERE\n```\n\n## Create Local PostgreSQL Database\n\n- For local migration testing you will need a local Postgres DB instance\n- Docker Example:\n\n    ```bash\n    docker run --name postgresdb -e POSTGRES_PASSWORD=YOUR_SECRET_PASSWORD_HERE -d -p 5432:5432 -v postgres_data:/var/lib/postgresql/data postgres:16\n    ```\n\n- Flyway requires a database before it can connect.  To speed up this process for development iteration, I've added `create_pg_db.zsh` which parses the flyway.conf file and pulls the server connection information.  It then connects and checks if the database exists, if so it drops the database then creates a new empty one.\n\n## CI Migrations\n\nMigrations are structured for use with FlywayDB\n\n- For local testing, you will need FlywayDB Community Edition installed\n  - [Download FlywayDB](https://flywaydb.org/download/community)\n\n- For local migration testing edit the `flyway.conf` file in this project's root directory with your local connection configuration.\n\n- Then run `flyway migrate`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanthorell%2Fpg-snowfall-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanthorell%2Fpg-snowfall-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanthorell%2Fpg-snowfall-db/lists"}