An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 6.6% on proxy.golang.org

proxy.golang.org : github.com/bartventer/gorm-multitenancy/mysql/v8

Package mysql provides a gorm.Dialector implementation for MySQL databases to support multitenancy in GORM applications, enabling tenant-specific operations and shared resources management. It includes utilities for registering models, migrating shared and tenant-specific models, and configuring the database for tenant-specific operations. This package follows the "separate databases" approach for multitenancy, which allows for complete data isolation by utilizing separate databases for each tenant. This approach ensures maximum security and performance isolation between tenants, making it suitable for applications with stringent data security requirements. The URL format for MySQL databases is as follows: See the MySQL connection strings documentation for more information. To register models for multitenancy support, use RegisterModels. This should be done before running any migrations or tenant-specific operations. To ensure data integrity and schema isolation across tenants,gorm.DB.AutoMigrate has been disabled. Instead, use the provided shared and tenant-specific migration methods. driver.ErrInvalidMigration is returned if the `AutoMigrate` method is called directly. To ensure tenant isolation and facilitate concurrent migrations, this package uses MySQL advisory locks. These locks prevent concurrent migrations from interfering with each other, ensuring that only one migration process can run at a time for a given tenant. Exponential backoff retry logic is enabled by default for migrations. To disable retry or customize the retry behavior, either provide options to New or specify options in the DSN connection string of Open. The following options are available: To migrate shared models, use MigrateSharedModels. To migrate tenant-specific models, use MigrateTenantModels. To clean up the database for a removed tenant, use DropDatabaseForTenant. To configure the database for operations specific to a tenant, use schema.UseDatabase.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/bartventer/gorm-multitenancy/mysql/v8
Keywords: echo , gin , go , gorm , iris , middleware , multitenancy , mysql , nethttp , postgres
License: Apache-2.0
Latest release: 5 months ago
First release: over 1 year ago
Namespace: github.com/bartventer/gorm-multitenancy/mysql
Stars: 71 on GitHub
Forks: 7 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago

Top 6.6% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/examples/v8
🚀📦 Multi-tenancy support for GORM managed databases
Latest release: about 1 month ago - 71 stars on GitHub
Top 6.6% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/middleware/gin/v8 v8.6.0
Package ginmiddleware provides a middleware for the Gin framework, which adds multi-tenancy suppo...
11 versions - Latest release: 5 months ago - 71 stars on GitHub
Top 6.6% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/postgres/v8 v8.9.0
Package postgres provides a gorm.Dialector implementation for PostgreSQL databases to support mul...
16 versions - Latest release: 5 months ago - 71 stars on GitHub
Top 6.6% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/v8 v8.9.0
Package multitenancy provides a Go framework for building multi-tenant applications, streamlining...
16 versions - Latest release: 5 months ago - 71 stars on GitHub
Top 6.6% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/middleware/echo/v8 v8.9.0
Package echo provides a middleware for the echo framework, which adds multi-tenancy support. Exa...
16 versions - Latest release: 5 months ago - 71 stars on GitHub
Top 6.5% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/middleware/iris/v8 v8.2.0
Package irismiddleware provides a middleware for the Iris framework, which adds multi-tenancy sup...
6 versions - Latest release: 5 months ago - 71 stars on GitHub
Top 6.6% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/middleware/nethttp/v8 v8.9.0
Package nethttp provides a middleware for the net/http package, which adds multi-tenancy support....
16 versions - Latest release: 5 months ago - 71 stars on GitHub
Top 6.7% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/middleware/nethttp/v7 v7.0.1
Package nethttp provides a middleware for the net/http package, which adds multi-tenancy support....
2 versions - Latest release: over 1 year ago - 71 stars on GitHub
Top 6.7% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/middleware/echo/v7 v7.0.1
Package echo provides a middleware for the Echo framework, which adds multi-tenancy support. Exa...
2 versions - Latest release: over 1 year ago - 71 stars on GitHub
Top 6.7% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/drivers/postgres/v7 v7.0.1
Package postgres provides a PostgreSQL driver for GORM, offering tools to facilitate the construc...
2 versions - Latest release: over 1 year ago - 71 stars on GitHub
Top 6.7% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/v7 v7.0.1
Package multitenancy provides a framework for implementing multitenancy in Go applications using ...
2 versions - Latest release: over 1 year ago - 71 stars on GitHub
Top 7.4% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/v6 v6.1.3
Package multitenancy provides a framework for implementing multitenancy in Go applications using ...
8 versions - Latest release: over 1 year ago - 71 stars on GitHub
Top 9.2% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/v5 v5.11.0
🚀📦 Multi-tenancy support for GORM managed databases
16 versions - Latest release: over 1 year ago - 71 stars on GitHub
Top 9.2% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/v4 v4.0.0
🚀📦 Multi-tenancy support for GORM managed databases
1 version - Latest release: almost 2 years ago - 71 stars on GitHub
Top 9.3% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/v3 v3.0.5
🚀📦 Multi-tenancy support for GORM managed databases
6 versions - Latest release: almost 2 years ago - 71 stars on GitHub
Top 10.0% on proxy.golang.org
github.com/bartventer/gorm-multitenancy/v2 v2.5.4
🚀📦 Multi-tenancy support for GORM managed databases
14 versions - Latest release: almost 2 years ago - 71 stars on GitHub
github.com/bartventer/gorm-multitenancy v1.0.9
🚀📦 Multi-tenancy support for GORM managed databases
10 versions - Latest release: almost 2 years ago - 71 stars on GitHub