Releases: bartventer/gorm-multitenancy
Releases · bartventer/gorm-multitenancy
v6.0.0
6.0.0 (2024-05-12)
Code Refactoring
- drivers/postgres: Move and rename
schema/postgres
todrivers/postgres/schema
(5893893)
Features
- upgrade: Update
gorm-multitenancy
from v5 to v6 (fa5e24b) - drivers/postgres: Add
TenantPKModel
withSchemaName
as primary key (c7213b3)
Performance Improvements
- drivers/postgres: Improve performance of
SetSearchPath
benchmarks (c459c4d) - schema/postgres: Remove
fmt.Sprintf
call inSetSearchPath
(49ec0b3) - scopes: Improve table name caching performance (33441b1)
- scopes: Remove
reflection
dependency fromWithTenantSchema
(9c6240d)
BREAKING CHANGES
- upgrade: All file references to
github.com/bartventer/gorm-multitenancy
have been updated from v5 to v6. This major version upgrade may introduce breaking changes that require updates in the code where this package is imported. - drivers/postgres: Moved and renamed
schema/postgres
todrivers/postgres/schema
. This change aligns the package location and name with its purpose of providing utilities for managing PostgreSQL schemas in a multi-tenant application. The relocation and renaming improve code organization and clarity. This is a breaking change and requires updates in the code where this package is imported.