Repository navigation
Releases: sheymor21/text-database
Release list
Fix: now the validation of the txt isnt affected by locations
🔧 Fix: Now the validation of the txt isnt affected by locations
Changes:
- Fixed Before the validation of the database extension was only if the location was in the same directory, now thats fixed
v0.9.2-alpha
🔧 Refactor: Remove utilities package by inlining its logic and adjust references across the project
Breaking Changes:
- Removed the entire
utilitiespackage - All utility functions have been inlined into their respective usage locations
Changes by File:
Test Files:
-
Test/database_test.go- Removed import of
utilitiespackage - Replaced
utilities.Must()calls with direct error handling using_for ignored errors - Updated 4 instances of
utilities.Must()usage
- Removed import of
-
Test/suite.go- Removed import of
utilitiespackage - Replaced
utilities.ErrorHandler()calls with localerrorHandler()function - Added new local
errorHandler()function implementation - Updated 5 instances across different test suites
- Removed import of
-
Test/table_test.go- Removed import of
utilitiespackage - Replaced all
utilities.Must()calls with direct tuple unpacking - Updated 16 instances of
utilities.Must()usage across various test methods
- Removed import of
Core Library:
tdb/dbOperations.go-
Removed import of
utilitiespackage -
Inlined utility functions with lowercase naming convention:
NewSecureTextEncoder()→newSecureTextEncoder()IsFileExist()→isFileExist()ErrorHandler()→errorHandler()Must()→must()IsEncode()→isEncode()EncodeAndSave()→encodeAndSave()DecodeAndSave()→decodeAndSave()ReadAndDecode()→readAndDecode()
-
Updated 12+ function calls to use new inlined versions
-
Impact:
- Simplified dependency structure by removing external utilities package
- Improved code locality by keeping utility functions close to their usage
- Maintained functionality while reducing import complexity
- Enhanced maintainability with fewer package dependencies
Migration Notes:
- No public API changes - all modifications are internal
- Test behavior remains unchanged
- All existing functionality preserved with inlined implementations
This refactoring represents a significant code organization improvement, consolidating utility functions and reducing package complexity while maintaining all existing functionality.
v0.9.1-alpha
Changelog
[Latest] - 2025-07-17
Changed
- Table Operations Refactoring: Simplified logic by removing redundant table updates and enhancing column manipulation for better performance and maintainability
save
Performance Improvements
- Parallel Validation: Refactored
checkDataConfigto use goroutines for concurrent validation, significantly improving processing speed for large datasets - Enhanced Error Handling: Improved error handling mechanisms in data configuration validation
Documentation
- Code Cleanup: Removed redundant horizontal rules from documentation files for better readability and consistency
Added
-
Comprehensive Documentation: Added detailed guides covering:
- Database operations
- Table configuration
- Data management
- Foreign key relationships
- Encryption features
- Initial data setup
-
Updated README: Restructured with organized content and quick start examples
Refactoring
- Package Restructuring: Refactored
text_databasepackage to for improved naming consistencytdb - Module Path Update: Updated module path to across all project files
github.com/sheymor21/text-database/tdb
Summary of Changes
This release focuses on performance optimization, comprehensive documentation, and code organization. The introduction of parallel processing for validation and the streamlined table operations should provide noticeable performance improvements, while the extensive documentation makes the project more accessible to new contributors and users.