This directory provides an example demonstrating the use of the gorm-multitenancy
package with various configurations:
To run this example on your local machine, follow these steps:
git clone https://github.com/bartventer/gorm-multitenancy.git
cd gorm-multitenancy
This example supports various configurations through command-line options.
go run -C examples . [options]
-
-server
string -
-driver
string
-
Run with default options:
go run -C examples .
-
Run with the
NetHTTP
server andMySQL
driver:go run -C examples . -server=nethttp -driver=mysql
Note
To enable debug logging, set the GMT_DEBUG environment variable to true. This can be helpful for troubleshooting or understanding the internal workings of the application.
Please see API Usage for more examples on how to interact with the server.
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.