Skip to content

v0.2.1

Choose a tag to compare

@yuku yuku released this 30 Jul 02:15
· 2 commits to main since this release
515e36b

What's New in v0.2.1

πŸ“š Documentation Updates

This patch release updates the package-level documentation to align with the v0.2.0 API changes and provide accurate examples for users.

πŸ”§ Changes

Package Documentation (doc.go)

  • Removed outdated API: Eliminated ResetDatabase configuration field from code examples
  • Updated strategy description: Changed from "reusing databases" to "template-based creation with DROP DATABASE isolation"
  • Enhanced feature list: Updated to emphasize DROP DATABASE strategy and concurrent support
  • Performance benefits: Updated to reflect complete isolation, concurrent support, and complex schema advantages
  • Comment accuracy: Changed "Reset and return to pool" to "Drop database and return resource to pool"

Description Updates

  • Package overview: Now correctly describes DROP DATABASE strategy for complete isolation
  • Key features: Updated to highlight excellent concurrent support and automatic cleanup
  • Performance section: Reflects current architecture with complete isolation and simplified maintenance

🎯 Impact

This release ensures that:

  • Package documentation matches the actual v0.2.0 API
  • Code examples work correctly with current library version
  • Users have accurate information about performance characteristics
  • Documentation reflects the simplified architecture without Strategy pattern

πŸ“– For Users

If you're using v0.2.0, the package documentation now correctly shows:

config := &testdbpool.Config{
    ID:           "myapp-test",
    Pool:         connPool,
    SetupTemplate: setupSchema,
    // ResetDatabase removed - DROP DATABASE used automatically
}

Full Changelog: v0.2.0...v0.2.1