Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(database): custom model query builder #762

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hungthai1401
Copy link
Contributor

This PR introduces QueryBuilder attribute allows custom model query builder for resuable and complexity logic

#[QueryBuilder(UserQueryBuilder::class)]
final class User implements DatabaseModel
{
    use IsDatabaseModel;
    // ...
}

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11967819727

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.009%) to 82.002%

Totals Coverage Status
Change from base Build 11964450544: 0.009%
Covered Lines: 8037
Relevant Lines: 9801

💛 - Coveralls

@innocenzi innocenzi changed the title feat(model): custom model query builder feat(database): custom model query builder Nov 22, 2024
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.

2 participants