Abarorm

Latest version: v3.2.1

Safety actively analyzes 682229 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

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.

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

1.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.

0.9.0

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.

0.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.

0.8.0

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.