Skip to content

Commit

Permalink
refactor: configure sqlc to not emit unused models
Browse files Browse the repository at this point in the history
This reduces code size, but also unnecessary imports for unused parts of the
schema, such as the encryption types for the configuration DAL.
  • Loading branch information
alecthomas committed Sep 13, 2024
1 parent 429e5be commit 5ad180e
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 2,163 deletions.
500 changes: 0 additions & 500 deletions backend/controller/cronjobs/dal/internal/sql/models.go

Large diffs are not rendered by default.

90 changes: 0 additions & 90 deletions backend/controller/dal/internal/sql/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions backend/controller/dal/internal/sql/querier.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions backend/controller/dal/internal/sql/queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -780,3 +780,7 @@ RETURNING
parent_request_key,
trace_context,
catching;

-- name: DummyQueryTimeline :one
-- This is a dummy query to ensure that the Timeline model is generated.
SELECT * FROM timeline WHERE id = @id;
24 changes: 24 additions & 0 deletions backend/controller/dal/internal/sql/queries.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5ad180e

Please sign in to comment.