Skip to content

Releases: ProdByGodfather/abarorm

v3.1.1

12 Oct 09:44
38c04d7
Compare
Choose a tag to compare

Release Notes: ORM Update Functionality Enhancement

Overview

In this release, we have implemented significant enhancements to the update functionality of the ORM. This update introduces two new methods for updating records, providing users with more flexibility and ease of use.

Key Features

  1. Specific Category Update Method:

    • Users can now update the title of a category by its ID through a dedicated method. This simplifies the process and allows for quick updates without requiring additional parameters.
  2. Flexible Post Update Route:

    • A new API route has been added that enables users to update multiple attributes of a post in a single request. This method accepts optional parameters, allowing for comprehensive updates based on user input.

Benefits

  • The new update functionality improves user experience by offering a straightforward method for category updates and a versatile approach for post updates.
  • Users can make multiple changes at once, reducing the number of requests needed to update records.

Testing and Validation

All new features have undergone thorough testing to ensure functionality and reliability. We encourage users to explore the new features and provide feedback for further improvements.

Conclusion

This release marks a significant step forward in enhancing the ORM's capabilities, making it easier for users to manage and update their records efficiently. We look forward to your continued support and feedback as we work to improve the ORM further.

Thank you for your contributions and engagement with our project!

v3.0.2

11 Oct 12:04
8050205
Compare
Choose a tag to compare

Release Notes for abarorm v3.0.2

What's New

We are excited to announce the release of abarorm version 3.0.2! This update brings significant improvements and new features to our lightweight and easy-to-use Object-Relational Mapping (ORM) library for SQLite, MySQL, and PostgreSQL databases.

Key Features

  1. Multi-Database Support:

    • SQLite, MySQL, and PostgreSQL support has been fully implemented.
    • The ORM can now seamlessly switch between databases without code changes, making it suitable for various applications.
  2. Enhanced DateField and DateTimeField Handling:

    • Added support for auto_now and auto_now_add options in DateField and DateTimeField.
    • Automatically set current date and time for fields with these options during record creation and updates.
  3. Robust ForeignKey Management:

    • Improved handling for foreign key relationships.
    • Support for both integer IDs and instances of related models when creating records.
  4. Error Handling:

    • Enhanced error messages for better clarity when foreign key relationships are invalid or when related instances are not found.

Bug Fixes

  • Addressed several issues related to table naming and query generation to ensure compatibility across all supported databases.

Installation

You can install or upgrade abarorm using pip:

pip install abarorm --upgrade

Documentation

For more detailed information on how to use abarorm, please refer to our documentation here.

Contributing

We welcome contributions! If you have suggestions or improvements, please open an issue or submit a pull request.

Thank you for using abarorm! We appreciate your support and feedback.

v3.0.1

07 Oct 12:56
78ae3d0
Compare
Choose a tag to compare

Overview

We are excited to announce the release of version 3.0.1 of the abarorm library. This version brings significant enhancements and new features aimed at improving the usability and functionality of the ORM.

New Features

  1. DateField and DateTimeField Support:

    • Added new field types to handle date and time more effectively.
    • Introduced options auto_now and auto_now_add for automatic date and time management.
  2. Improved create Method:

    • Updated the method to automatically manage date and time fields during record creation and updates, reducing manual input errors.
  3. Database Schema Update:

    • Updated the database schema to ensure proper storage of timestamps.

Conclusion

This release improves the overall experience for users of the abarorm library, making it easier to manage date and time fields in your models. We encourage you to update to the latest version to take advantage of these new features.

v3.0.0

07 Oct 11:18
16eacdf
Compare
Choose a tag to compare

Release Notes for abarorm v3.0.0

Release Overview

Version 3.0.0 of abarorm brings significant enhancements, crucial bug fixes, and new features aimed at improving the user experience and overall functionality of the ORM library. This release emphasizes better model management and supports a wider range of database operations.

Changes

1. Bug Fixes

  • Table Naming Bug Fix: Resolved issues with inconsistent table naming conventions, ensuring that table names are now generated correctly based on model class names.
  • Adjusted Return Values: Improved the return values for various methods in the library, ensuring that users can rely on consistent behavior across CRUD operations.

2. Enhancements

  • Ordering in Filter Method: The filter method now supports ordering results by specified fields, enabling more flexible queries and data retrieval options.
  • Model Management Improvements: Streamlined the automatic creation and updating of tables based on model definitions, reducing the need for manual table management.

3. New Features

  • Enhanced Foreign Key Support: Improved handling of foreign key relationships, making it easier for users to interact with related models without running into common pitfalls.
  • Expanded Custom Field Types: Added new capabilities for defining custom field types, including additional validation and constraints to ensure data integrity.

4. Documentation Updates

  • Comprehensive updates to the documentation have been made to reflect the latest changes, providing clear examples and guidelines for effective usage of the abarorm library.

Compatibility

  • This version supports Python 3.8 and above and is compatible with SQLite, MySQL, and PostgreSQL databases.

Contribution

  • Contributions are highly encouraged! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on GitHub.

License

  • This project is licensed under the Apache-2.0 License.

Thank you for using abarorm, and we look forward to your feedback and contributions!

v2.1.0

20 Aug 08:28
Compare
Choose a tag to compare

Release 2.1.0

Changes

  • The Category model now uses a Meta class to specify the database configuration, instead of passing it to the __init__ method. This change simplifies the model definition and makes it more readable.
  • The db_name attribute in the Meta class is set to DATABASE_CONFIG['sqlite'], which specifies the SQLite database configuration for the model.

Upgrade Instructions

To upgrade to version 2.0.1, follow these steps:

  1. Update your ORM package to the latest version.
  2. In your code, replace the old Category model definition with the new one provided in the release notes.
  3. Run your application as usual, and the updated Category model will be used for database operations.

Compatibility

This release is compatible with version 2.0.0 of the ORM package. No further changes are required to use the updated Category model.

Bug Fixes and Improvements

This release focuses on improving the code structure and readability of the Category model. No bug fixes or major new features are included in this update.

If you have any questions or encounter any issues, please contact our support team or submit a bug report on our issue tracker.

v2.0.0

19 Aug 12:46
Compare
Choose a tag to compare

Release Notes: Version 2.0.0

abarorm v1.1.0 introduces support for auto_now_add, allowing automatic population of creation timestamps for DateTimeField and DateField fields. This enhancement simplifies model creation by automatically setting creation times without needing manual intervention.

New Features:

  • Support more fields
  • sorting on all() method
  • Postgresql database support

v1.0.0

19 Aug 11:56
Compare
Choose a tag to compare

Release Notes for abarorm v1.0.0

We are excited to announce the release of abarorm version 1.0.0! This release marks a significant milestone in the development of our lightweight Object-Relational Mapping (ORM) library for SQLite and MySQL databases in Python.

New Features

Automatic Table Management: With this update, you no longer need to manually call create_table() to set up or update your database schema. abarorm now automatically handles table creation and updates based on your model definitions.
Enhanced Field Management: Models can now be defined with custom fields, including foreign keys, and abarorm will automatically manage default values and constraints as specified.

Important Notes for Developers

Development Mode Consideration: During the development phase, any new fields added to your models will default to NULL. It is strongly recommended to recreate your database schema once development is complete to ensure all fields have appropriate constraints and default values.

v0.9.0

18 Aug 08:58
0261bc6
Compare
Choose a tag to compare

New Features:

  • MySQL Support: Added support for MySQL databases. You can now use MySQLModel to interact with MySQL databases alongside SQLite.
  • Database Compatibility: Adjusted query methods and table creation to ensure compatibility with MySQL.

Updates:

  • Introduced the MySQLModel class for managing MySQL connections.
  • Included mysql-connector-python as a dependency for MySQL support.

This release enhances the flexibility of abarorm, enabling it to work with both SQLite and MySQL databases.

v0.8.0

18 Aug 06:25
Compare
Choose a tag to compare

Release Notes for abarorm v0.8

We are excited to announce the release of abarorm version 0.8! This update includes crucial bug fixes and enhancements:

Resolved: Fixed NOT NULL constraint issues, ensuring proper value assignment for all fields, especially for DateTimeField with auto_now.
Improved: Enhanced ForeignKey handling, ensuring proper assignment and management of foreign key relationships.
Table Creation: Improved the create_table method, ensuring all defined fields are correctly created in the database.

General Enhancements: Improved overall code structure and readability for better stability and performance.
This release is a significant step forward in making abarorm more reliable and easier to use.

v0.7.4

17 Aug 16:13
4478f9a
Compare
Choose a tag to compare

Release 0.7.4 - Initial Release

Date: Saturday, 17 August 2024

Overview

We are excited to announce the first official release of abarorm, a simple ORM library for Python. This release marks the initial version of the package, laying the foundation for future enhancements.

Key Features

  • Basic ORM Functionality: Includes core features for defining models and performing CRUD operations.
  • SQLite Support: Integrated support for SQLite, making it easy to use with Python applications.

Getting Started

To get started with abarorm, install it via PyPI and check the documentation for usage examples and API details.

pip install abarorm

Future Plans

Future releases will focus on additional features, improvements, and extended support for other databases.

Thank you for your support and feedback!