Pgmonkey

Latest version: v1.1.8

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

Scan your dependencies

Page 3 of 4

1.0.10

---

🚀 New Features and Enhancements:

**Improved Connection Management:**
- Enhanced support for **asynchronous transactions** and **connection pooling**.
- Added `transaction` methods for both `PGAsyncConnection` and `PGPoolConnection` classes, allowing easier management of transactions with `async with` and `with` statements.
- This improvement standardizes transaction handling across different connection types, making it simpler to work with pooled and async connections.

**Context Management for Cursors:**
- Now supports the use of `async with connection.cursor()` for `PGAsyncConnection` and `PGAsyncPoolConnection`.
- Synchronous cursor handling for `PGPoolConnection` and `PGNormalConnection` has been streamlined, ensuring consistent behavior across different connection types.
- This enhancement allows for better resource management and automatically closes cursors when they are no longer needed.

**Detailed Connection Testing:**
- Updated connection tests to include more comprehensive validation of connection pooling behavior.
- For example, `test_connection()` now verifies the acquisition of multiple connections in `PGAsyncPoolConnection` and `PGPoolConnection` to ensure pools are correctly managing connection limits.
- This improvement provides more robust testing to identify potential issues with pool configurations before they impact production.

---

♻️ Backward Compatibility:

- All previous connection methods remain available. The new transaction handling and cursor management features are **additive**, providing more options without breaking existing workflows.
- Legacy connection configuration options like `pool_settings` and `async_settings` are still supported, though users are encouraged to leverage the new streamlined transaction methods for improved efficiency.

---

🐛 Bug Fixes:

- **Resolved**: Fixed issues with connection pooling where connections were not being correctly returned to the pool under certain conditions.
- **Improved**: Error handling during connection setup and teardown has been refined, ensuring more informative error messages when connection or transaction issues occur.
- **Corrected**: Addressed an issue where the `PGAsyncConnection` class raised an error when using `command_timeout`, making settings validation more accurate.

---

⚙️ Migration Notes:

- Users are encouraged to update their testing scripts to use the new `transaction()` methods for managing database transactions in both async and sync environments. This makes it easier to leverage automatic commit/rollback behaviors.
- No major configuration changes are required. Existing YAML configuration files will continue to work as before, but users can now take advantage of more robust transaction handling.

This release focuses on enhancing developer productivity and reliability with better transaction handling, more intuitive cursor management, and thorough testing capabilities. Happy coding with pgmonkey! 🐒🚀

1.0.9

🚀 New Features and Enhancements:
Alias Support for --connconfig:
🆕 You can now use --connconfig as an alias for --filepath across all pgconfig CLI commands. This update provides a more descriptive option when specifying configuration file paths.

Examples:
✅ pgmonkey pgconfig test --connconfig /path/to/config.yaml
Works the same as:
✅ pgmonkey pgconfig test --filepath /path/to/config.yaml

This improves clarity while keeping things flexible for users who prefer either option. 🎉

♻️ Backward Compatibility:
🔄 The --filepath argument remains fully supported. This addition is non-breaking, so previous workflows will continue as normal! 👍
🐛 Bug Fixes:
None in this release.
This release enhances usability by making command arguments clearer and more intuitive without breaking existing functionality.

1.0.8

Faster Import/Export: Experience significantly improved performance for both importing and exporting large datasets.
Connection Flexibility: Automatically switch between connection types based on the best performance needs, without requiring manual adjustments.
Stability and Usability: Several important bug fixes and stability improvements, especially around async connection handling.
This release is recommended for all users, especially those working with large datasets and multiple PostgreSQL connection types. We thank you for your continued support and feedback, which helps us make pgmonkey better with every release!

Happy coding! 🐒🎉

1.0.7

Simplified Data Management: This release simplifies moving data in and out of your PostgreSQL databases, perfect for backups, migrations, or integration tasks.

Customizable and Easy to Use: Automatically generated configuration templates make it easy to customize import/export settings, reducing setup time.

Seamless Integration: The new import/export functionality integrates smoothly with the existing pgmonkey CLI commands, allowing you to handle data operations alongside connection management tasks.

This is a must-have update for users needing quick, efficient data import/export capabilities. Upgrade to pgmonkey 1.0.7 today and enjoy seamless data transfers in your PostgreSQL environment.

Happy coding! 🐒🎉

1.0.6

- **Critical**: This release addresses an essential bug that affects all synchronous connection types. Without this fix, your synchronous connections will fail to run properly.
- **Improved Code Generation**: If you are using the code generation feature for connection examples, the new version generates cleaner, correct code based on your connection type.
- **Production Stability**: Ensure that your synchronous PostgreSQL configurations run without errors, whether you're using sync or async connection types.

This is a highly recommended update for all pgmonkey users. Make sure to upgrade to version 1.0.6 to avoid any issues with your synchronous PostgreSQL connections.

Happy coding! 🐒🎉

1.0.5

In this small but important update, we've made a minor adjustment to improve the connection code generator. Version 1.0.5 corrects the removal of unnecessary `async` keywords from synchronous connection examples, ensuring the generated code is clean and accurate for normal and pooled connections.

This follows the larger improvements from version 1.0.4, which introduced the ability to generate sample Python connection code directly from your PostgreSQL configuration files.

What's Fixed:
- **Synchronous Code Cleanup**: Removed `async` from the synchronous connection examples to reflect the correct behavior.

Thank you for your continued feedback, and enjoy the streamlined experience! 🎉

Page 3 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.