Skip to content

Upgrade Doobie to 1.0.0-RC9 (fixes #141)#150

Merged
oyvindberg merged 2 commits intomainfrom
doobie-rc9
Jul 8, 2025
Merged

Upgrade Doobie to 1.0.0-RC9 (fixes #141)#150
oyvindberg merged 2 commits intomainfrom
doobie-rc9

Conversation

@oyvindberg
Copy link
Copy Markdown
Collaborator

Summary

  • Upgrades Doobie dependency from 1.0.0-RC5 to 1.0.0-RC9
  • Fixes code generation for Read/Write instances to work with RC9's new APIs
  • Maintains backward compatibility while using improved RC9 features

Changes Made

  • Dependency upgrade: Updated doobie-postgres from RC5 to RC9 in bleep.yaml
  • Read instance generation: Migrated to Read.CompositeOfInstances with proper type casting
  • Write instance generation: Updated to use Write.Composite and new constructors
  • SqlExpr rendering: Fixed casting logic using Put.vendorTypeNames
  • Code formatting: Improved generated Read instances with proper newlines

Test Results

  • All existing tests pass with the new RC9 APIs
  • Generated code is cleaner and more maintainable
  • No breaking changes for users

🤖 Generated with Claude Code

oyvindberg and others added 2 commits July 8, 2025 22:51
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Updated dependency from RC5 to RC9 in bleep.yaml
- Fixed Write instance generation to use new constructors (new Write.Single/SingleOpt)
- Fixed Read instance generation using Read.CompositeOfInstances for multi-column reads
- Updated SqlExpr casting logic to use Put.vendorTypeNames for Doobie RC9
- Regenerated all test sources with new Doobie API

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@oyvindberg oyvindberg merged commit ad7f826 into main Jul 8, 2025
8 checks passed
@oyvindberg oyvindberg deleted the doobie-rc9 branch July 8, 2025 21:19
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