Skip to content

v4.0.1

@timhaak timhaak tagged this 14 Jun 00:59
- Extract common patterns to composable traits:
  - PostgresQueries: common database query methods
  - SqlFileLoader: SQL file loading and execution
  - OperationTiming: performance monitoring and statistics

- Create single-responsibility validator classes:
  - ColumnValidator: validates required columns and types
  - IndexValidator: validates required indexes
  - SequenceValidator: checks sequence health
  - TriggerValidator: validates trigger existence
  - ConstraintValidator: validates constraints

- Refactor PgHelperLibrary:
  - All methods now < 20 lines (functional programming)
  - Uses traits for common functionality
  - Maintains backward compatibility

- Set up comprehensive testing infrastructure:
  - Orchestra Testbench with DatabaseTransactions
  - DatabaseSeeder trait for test data
  - Unit tests for validators
  - Integration tests for core functionality
  - Docker Compose with dual PostgreSQL instances
  - Justfile for development workflow

- Fix all linting issues:
  - PHPStan Level 8 passing
  - PHP-CS-Fixer PSR-12 compliant
  - Rector PHP 8.3+ optimizations

- Update documentation:
  - README with testing instructions
  - CLAUDE.md with current architecture
  - Status and todo files updated
Assets 2
Loading