Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sqlc; performance and reliability improvements; large refactor #243

Merged
merged 31 commits into from
Nov 15, 2024

Conversation

dennisgsmith
Copy link
Contributor

@dennisgsmith dennisgsmith commented Nov 12, 2024

Description

This PR adds the ability to generate type-safe data bindings using sqlc and pgx native api, allowing for data bating for more efficient upload.

This improves the maintainability of the api using code generation that accurately resembles the database models.

Also in this PR is

  • Uploader Tool functionality for Uploader Configs and mappings
  • Inclinometer schema updates for easier composition of timeseries
  • A number of bugfixes
  • A number of breaking API changes

Change log

Renames

  • creator -> created_by

  • creator_username -> created_by_username

  • create_date -> created_at

  • updater -> updated_by

  • updater_username -> updated_by_username

  • update_date -> updated_at

  • start_date -> started_at

  • end_date -> ended_at

  • completion_date -> completed_at

  • due_date -> due_at

  • last_checked -> last_checked_at

  • last_reminded -> last_reminded_at

Updated response bodies

  • POST/PUT timeseries batch no longer returns all of the timeseries in the response (for performance reasons)

  • POST/PUT cwms batch no longer returns all of the timeseries in the response (for performance reasons)

  • POST/PUT timeseries_measurements also no longer returns all of the timeseries in the response (again for performance reasons)And I had to change the name of some terminology in the equivalency table model (from "rows" to "fields", sqlc/Postgres was confusing it since it's a sql keyword and should be avoided anyway)

  • formulas/{formula_id} now uses actual PUT instead of pseudo-PATCH

  • Removed /instruments endpoint

  • Removed instruments/notes endpoint

Feat

  • New inclinometer schema (uses same depth based options as saa and ipi with embedded "opts")

@dennisgsmith dennisgsmith merged commit c0e3657 into develop Nov 15, 2024
1 check passed
@dennisgsmith dennisgsmith deleted the enhancement/sqlc branch November 15, 2024 23: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