![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
github.com/bartventer/gorm-multitenancy/v8
Photo by Ashley McNamara, via ashleymcnamara/gophers (CC BY-NC-SA 4.0)
Gorm-multitenancy provides a Go framework for building multi-tenant applications, streamlining tenant management and model migrations. It abstracts multitenancy complexities through a unified, database-agnostic API compatible with GORM.
There are three common approaches to multitenancy in a database:
Depending on the database in use, this package utilizes either the "shared database, separate schemas" or "separate databases" strategy, ensuring a smooth integration with your existing database configuration through the provision of tailored drivers.
Database | Approach |
---|---|
PostgreSQL | Shared database, separate schemas |
MySQL | Separate databases |
Install the core package:
go get -u github.com/bartventer/gorm-multitenancy/v8
Install the database-specific driver:
# PostgreSQL
go get -u github.com/bartventer/gorm-multitenancy/postgres/v8
# MySQL
go get -u github.com/bartventer/gorm-multitenancy/mysql/v8
Optionally, install the router-specific middleware:
# Echo
go get -u github.com/bartventer/gorm-multitenancy/middleware/echo/v8
# Gin
go get -u github.com/bartventer/gorm-multitenancy/middleware/gin/v8
# Iris
go get -u github.com/bartventer/gorm-multitenancy/middleware/iris/v8
# Net/HTTP
go get -u github.com/bartventer/gorm-multitenancy/middleware/nethttp/v8
Check out the pkg.go.dev documentation for comprehensive guides and API references.
For a practical demonstration, you can run the example application. It showcases various configurations and usage scenarios.
All contributions are welcome! See the Contributing Guide for more details.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.