-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add Aggregate Query Features and Documentation Improvements #7
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Major changes: - Improve SQLite RETURNING clause support with better version checks - Add ReturningOptions class for advanced RETURNING clause configuration - Add comprehensive join functionality including INNER, LEFT, RIGHT, FULL, CROSS joins - Add support for MariaDB backend - Update Pydantic version requirements and Python compatibility - Add detailed documentation in Chinese and English Technical details: - Refactor SQLite backend to use hook methods for better extensibility - Add type-safe join methods with support for aliases and conditions - Improve error handling for database-specific cases - Add comprehensive test coverage for join operations - Update dependencies to support latest Pydantic features - Fix SQLite compatibility issues with Python versions
…ng introduction, community, learning curve, and advanced features
… window functions, development process, security considerations, and application scenarios
…xamples This commit improves the debugging techniques documentation by adding: - Detailed logging configuration examples - Query inspection methods using explain() - Techniques for debugging complex queries and relationships - Solutions for common issues like N+1 query problems - Transaction and database connection troubleshooting - Integration with Python debuggers and database tools - Best practices for effective debugging The documentation now provides more practical examples to help users identify and resolve issues in their ActiveRecord applications.
…ide usage examples for batch operations and cross-database transactions
This commit adds comprehensive documentation on how to integrate raw SQL queries with ActiveRecord when more control or specific database features are needed. The documentation covers: - Using raw SQL in where conditions - Incorporating raw SQL in join clauses - Executing raw SQL queries directly - Leveraging database-specific features - Combining raw SQL with the query builder - Using raw SQL for subqueries - Best practices for raw SQL usage - Security considerations This documentation helps users understand when and how to safely use raw SQL while still benefiting from ActiveRecord's ORM capabilities.
Add detailed documentation about branch management and version release process: - Define permanent branches (main and docs) - Establish branch creation rules and naming conventions - Outline version release process and CI requirements - Explain documentation branch management workflow
…or MySQL and MariaDB Updated multiple documentation files to add detailed configuration guides, data type mappings, storage engine support, transaction management, JSON support, and more for MySQL and MariaDB. These updates aim to provide developers with more comprehensive database support information and optimize the documentation structure for better readability.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7 +/- ##
==========================================
- Coverage 79.28% 77.03% -2.26%
==========================================
Files 41 42 +1
Lines 3708 4097 +389
Branches 621 698 +77
==========================================
+ Hits 2940 3156 +216
- Misses 576 733 +157
- Partials 192 208 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


This pull request introduces comprehensive aggregate query features and related documentation improvements to the Python ActiveRecord project. The main changes include:
Change List
Aggregate Query Support
count,sum,avg,min, andmax.group by,having, and complex aggregation operations.Documentation Updates
Other Improvements