Skip to content

Conversation

@sgaunet
Copy link
Owner

@sgaunet sgaunet commented Dec 7, 2025

Replace all hardcoded "public" string literals in main.go with
app.DefaultSchema constant for improved maintainability and
consistency. This eliminates magic strings and provides a single
source of truth for the default PostgreSQL schema name.

Changes:

  • Update tool descriptions to use fmt.Sprintf with app.DefaultSchema
  • Replace default schema assignments with app.DefaultSchema
  • Improves code clarity and makes future changes easier

Closes #34

Replace all hardcoded "public" string literals in main.go with
app.DefaultSchema constant for improved maintainability and
consistency. This eliminates magic strings and provides a single
source of truth for the default PostgreSQL schema name.

Changes:
- Update tool descriptions to use fmt.Sprintf with app.DefaultSchema
- Replace default schema assignments with app.DefaultSchema
- Improves code clarity and makes future changes easier

Closes #34
@sgaunet sgaunet self-assigned this Dec 7, 2025
@sgaunet sgaunet linked an issue Dec 7, 2025 that may be closed by this pull request
6 tasks
@sgaunet sgaunet added the chore Chore label Dec 7, 2025
@sgaunet sgaunet merged commit e92a53e into main Dec 7, 2025
5 checks passed
@sgaunet sgaunet deleted the 34-replace-magic-string-public-with-named-constant branch December 7, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace magic string 'public' with named constant

2 participants