gorm-multitenancy

🚀📦 Multi-tenancy support for GORM managed databases

APACHE-2.0 License

Stars
39

Bot releases are visible (Hide)

gorm-multitenancy - v5.9.0

Published by github-actions[bot] 6 months ago

5.9.0 (2024-04-22)

Features

  • deps: bump github.com/labstack/echo/v4 from 4.11.4 to 4.12.0 (#9) (81eb383)
gorm-multitenancy - v5.8.0

Published by github-actions[bot] 6 months ago

5.8.0 (2024-04-19)

Features

  • deps: bump golang.org/x/net in the go_modules group (#8) (72c19cc)
gorm-multitenancy - v5.7.0

Published by github-actions[bot] 7 months ago

5.7.0 (2024-04-08)

Bug Fixes

  • drivers/postgres: address SQL-injection security risk on SET operations (f64daaa)
  • schema/postgres: quote value in SetSearchPath (0cabf88)

Features

  • add golangci-lint for improved linting (7aa6c12)
gorm-multitenancy - v5.6.0

Published by github-actions[bot] 7 months ago

5.6.0 (2024-04-02)

Features

  • deps: bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.4 (#7) (7e48d44)
gorm-multitenancy - v5.5.0

Published by github-actions[bot] 7 months ago

5.5.0 (2024-03-28)

Features

  • deps: bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#4) (924aed6)
gorm-multitenancy - v5.4.0

Published by github-actions[bot] 7 months ago

5.4.0 (2024-03-28)

Features

  • deps: bump gorm.io/driver/postgres from 1.5.6 to 1.5.7 (#5) (54e56a5)
gorm-multitenancy - v5.3.0

Published by github-actions[bot] 7 months ago

5.3.0 (2024-03-28)

Features

  • deps: bump gorm.io/gorm from 1.25.7 to 1.25.9 (#6) (b0c4ccd)
gorm-multitenancy - v5.2.1

Published by github-actions[bot] 8 months ago

5.2.1 (2024-02-27)

Bug Fixes

  • drivers/postgres: update docs and refactor logging (1ba10c1)
gorm-multitenancy - v5.2.0

Published by github-actions[bot] 8 months ago

5.2.0 (2024-02-22)

Features

  • dependencies: upgrade GORM and PostgreSQL driver (065de6d)
  • subdomain: modify ExtractSubdomain to return only first part (8134cfa)
gorm-multitenancy - v5.1.2

Published by github-actions[bot] 8 months ago

5.1.2 (2024-02-21)

Bug Fixes

  • dependencies: downgrade gorm.io and gorm Postgres driver version (225f725)
gorm-multitenancy - v5.1.1

Published by github-actions[bot] 8 months ago

5.1.1 (2024-02-21)

Bug Fixes

  • dependencies: downgrade gorm.io Postgres driver version (abafaba)
gorm-multitenancy - v5.1.0

Published by github-actions[bot] 8 months ago

5.1.0 (2024-02-21)

Features

gorm-multitenancy - v5.0.0

Published by github-actions[bot] 8 months ago

5.0.0 (2024-02-21)

Code Refactoring

  • postgres: modify SetSearchPath function in schema/postgres (872730a)
  • scopes: modify WithTenantSchema function in scopes/scopes.go (22c38ef)

Features

  • package: upgrade from v4 to v5 (a90944f)

BREAKING CHANGES

  • package: The upgrade from v4 to v5 introduces changes that are not backward compatible. Please refer to the documentation for more details.
  • scopes: The WithTenantSchema function in scopes/scopes.go no longer sets the tenant in context. This change may affect the behavior of any code that relies on the tenant being set in the context after calling this function.
  • postgres: The SetSearchPath function in schema/postgres/postgres.go no longer sets the tenant in context. The function signature has also been changed to return (*gorm.DB, ResetSearchPath) instead of (*gorm.DB, ResetSearchPath, error).
gorm-multitenancy - v4.0.0

Published by github-actions[bot] 8 months ago

4.0.0 (2024-02-19)

Bug Fixes

  • remove deprecated types and variables (7017cca)

Features

  • module: update module version to v4 and import paths (0da75e7)
  • align logger with gorm default logger (87655c7)
  • change SetSearchPath function signature (47b145d)
  • update newMultitenancyConfig error handling (9069f87)
  • update WithTenantSchema scope to set tenant in context (ec758cb)

BREAKING CHANGES

  • module: The module version and import paths have been updated to v4.
    This change requires updating all import statements to use the new version.
  • The function signature now returns a gorm db connection, the cleanup function and an error if any.
gorm-multitenancy - v3.0.5

Published by github-actions[bot] 8 months ago

3.0.5 (2024-02-10)

Bug Fixes

  • update log info for DropSchemaForTenant (260426b)
gorm-multitenancy - v3.0.4

Published by github-actions[bot] 8 months ago

3.0.4 (2024-02-10)

Bug Fixes

  • change CreateSchemaForTenant log info (b6efb4d)
gorm-multitenancy - v3.0.3

Published by github-actions[bot] 9 months ago

3.0.3 (2024-02-09)

Bug Fixes

  • increase logging detail for CreateSchemaForTenant function (acc4657)
gorm-multitenancy - v3.0.2

Published by github-actions[bot] 9 months ago

3.0.2 (2024-02-08)

Bug Fixes

  • deprecate unused types and variables (c884678)
gorm-multitenancy - v3.0.1

Published by github-actions[bot] 9 months ago

3.0.1 (2024-02-08)

Bug Fixes

gorm-multitenancy - v3.0.0

Published by github-actions[bot] 9 months ago

3.0.0 (2024-02-08)

Performance Improvements

BREAKING CHANGES

  • Added native echo context support for echo middleware instead of calling the net/http middleware. Added the ExtractDomain function which is in sync with the regex check of the SchemaName field of the TenantModel. Renamed the context package to tenantcontext. Further added unit tests for all examples.
Package Rankings
Top 6.48% on Proxy.golang.org
Badges
Extracted from project README
Mentioned in Awesome Go Go Reference Release Go Report Card codecov Tests License
Related Projects