Skip to content

3.0: seal the DatabaseQueue trait #87

Closed

Description

@CodingAnarchy

DatabaseQueue has 82 methods, and the crate ships the only implementations (PostgreSQL, MySQL, TestQueue). Because external implementations are possible, every new method needs a default body that works on its own. The 2.1 batch claim had to fall back to looping over single claims for this reason.

Seal the trait in 3.0 with a private supertrait, so future methods are additive and no defaults need to be designed for unknown implementations. Remove the defaults that exist only for external implementations. Document that TestQueue is the supported way to test without a database.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions