# README
mysql
MySQL provides a driver for the gorm-multitenancy package, allowing for easy multitenancy setup in MySQL databases.
Installation
go get -u github.com/bartventer/gorm-multitenancy/mysql/v8
Getting Started
Check out the pkg.go.dev documentation for comprehensive guides and API references.
For MySQL-specific documentation, refer to pkg.go.dev.
Running the Example Application
For a practical demonstration, you can run the example application. It showcases various configurations and usage scenarios.
Contributing
All contributions are welcome! See the Contributing Guide for more details.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
# Packages
Package schema provides utilities for managing MySQL databases in a multi-tenant application.
# Functions
DropDatabaseForTenant drops the database for a specific tenant in the MySQL database.
MigrateSharedModels migrates the public schema in the database.
MigrateTenantModels creates a new schema for a specific tenant in the MySQL database.
New creates a new MySQL dialector with multitenancy support.
Open creates a new MySQL dialector with multitenancy support.
RegisterModels registers the given models with the provided [gorm.DB] instance for multitenancy support.
# Constants
DriverName is the name of the MySQL driver.
# Type aliases
No description provided by the author