Skip to content

Releases: sheymor21/text-database

Fix: now the validation of the txt isnt affected by locations

Choose a tag to compare

@sheymor21 sheymor21 released this 27 Jul 15:50

🔧 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

v0.9.2-alpha Pre-release
Pre-release

Choose a tag to compare

@sheymor21 sheymor21 released this 17 Jul 18:39

🔧 Refactor: Remove utilities package by inlining its logic and adjust references across the project

Breaking Changes:

  • Removed the entire utilities package
  • All utility functions have been inlined into their respective usage locations

Changes by File:

Test Files:
  • Test/database_test.go

    • Removed import of utilities package
    • Replaced utilities.Must() calls with direct error handling using _ for ignored errors
    • Updated 4 instances of utilities.Must() usage
  • Test/suite.go

    • Removed import of utilities package
    • Replaced utilities.ErrorHandler() calls with local errorHandler() function
    • Added new local errorHandler() function implementation
    • Updated 5 instances across different test suites
  • Test/table_test.go

    • Removed import of utilities package
    • Replaced all utilities.Must() calls with direct tuple unpacking
    • Updated 16 instances of utilities.Must() usage across various test methods
Core Library:
  • tdb/dbOperations.go
    • Removed import of utilities package

    • 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

v0.9.1-alpha Pre-release
Pre-release

Choose a tag to compare

@sheymor21 sheymor21 released this 17 Jul 17:05

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 checkDataConfig to 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_database package to for improved naming consistency tdb
  • 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.

v0.9.0

v0.9.0 Pre-release
Pre-release

Choose a tag to compare

@sheymor21 sheymor21 released this 16 Jul 17:05
Update import paths to reflect module path change to `github.com/shey…