Skip to content

Return erros for all db related actions and querys and use modern error handling with %w - #62

Merged
6543 merged 2 commits into
techknowlogick:mainfrom
6543-forks:return-errors
Nov 12, 2026
Merged

6543 merged 2 commits into
techknowlogick:mainfrom
6543-forks:return-errors

Conversation

@6543

@6543 6543 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

No description provided.

@techknowlogick

Copy link
Copy Markdown
Owner

@6543 thanks! could you resolve conflicts?

migrationDidRun and canInitializeSchema turned a failing query into
"did not run", so Migrate could run a migration again, RollbackLast
returned ErrNoRunMigration and RollbackTo did nothing.
Callers can then match the original error with errors.Is and errors.As.
@6543

6543 commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

done :)

@6543
6543 merged commit 31788ab into techknowlogick:main Nov 12, 2026
2 checks passed
@6543
6543 deleted the return-errors branch November 12, 2026 21:40
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.

3 participants