Skip to content

feat: send-to-postgres#28

Draft
aaronstillwell wants to merge 6 commits intomainfrom
feat/postgres-loader
Draft

feat: send-to-postgres#28
aaronstillwell wants to merge 6 commits intomainfrom
feat/postgres-loader

Conversation

@aaronstillwell
Copy link
Contributor

@aaronstillwell aaronstillwell commented Jan 22, 2026

This PR introduces send-to-postgres, which loads usage API data into a postgres data, ideal for querying for BI purposes.

Database Migrations

A new dependency is introduced, alembic, to manage database migrations. This should allow for graceful database schema updates, as well as future support for other databases.

Example usage

Pull directly from the usage API and load to postgres

circleci-usage-reporter send-to-postgres --start-date 2025-12-01 --end-date 2025-12-31 --user postgres --password postgres --database testdb

Load from a pre-pulled csv file

circleci-usage-reporter send-to-postgres --input my-data.csv --user postgres --password postgres --database testdb

@aaronstillwell aaronstillwell changed the base branch from main to add-cli January 22, 2026 10:37
@aaronstillwell aaronstillwell changed the title feat: postgres loader feat: send-to-postgres Jan 22, 2026
Base automatically changed from add-cli to main February 26, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant