Categorygithub.com/bartventer/gorm-multitenancy/postgres/v8
modulepackage
8.7.2
Repository: https://github.com/bartventer/gorm-multitenancy.git
Documentation: pkg.go.dev

# README

postgres

Go Reference Go Report Card License

Postgres provides a driver for the gorm-multitenancy package, allowing for easy multitenancy setup in PostgreSQL databases.

Installation

go get -u github.com/bartventer/gorm-multitenancy/postgres/v8

Getting Started

Check out the pkg.go.dev documentation for comprehensive guides and API references.

For PostgreSQL-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 PostgreSQL schemas in a multi-tenant application.

# Functions

DropSchemaForTenant drops the schema for a specific tenant in the PostgreSQL database (CASCADE).
MigratePublicSchema migrates the public schema in the database.
MigrateTenantModels creates a new schema for a specific tenant in the PostgreSQL database.
New creates a new PostgreSQL dialector with multitenancy support.
Open creates a new PostgreSQL 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 PostgreSQL driver.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author