package
1.3.0
Repository: https://github.com/momeni/clean-arch.git
Documentation: pkg.go.dev

# Functions

ChangePasswords updates the passwords of the given roles in the current transaction.
CreateRoleIfNotExists creates the `role` role if it does not exist right now.
CreateSchema tries to create the `schema` schema.
DropCascade drops `schema` schema with cascading, dropping all dependent objects recursively.
DropIfExists drops the `schema` schema without cascading if it exists.
DropServerIfExists drops the `serverName` foreign server, if it exists, with cascade.
GrantFDWUsage grants the USAGE privilege on the postgres_fdw extension to the `role` role.
GrantPrivileges grants ALL privileges on the `schema` schema to the `role` role, so it may create or access tables in that schema and run relevant queries.
InstallFDWExtensionIfMissing creates the postgres_fdw extension assuming that its relavant .so files are available in proper paths.
New instantiates a schema management Repo struct.
SetSearchPath alters the given database role and sets its default search_path to the given schema name alone.

# Structs

Repo represents a schema management repository.