namespace

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package namespace provides utilities for validating tenant names in a consistent manner across different database systems.

Namespace is a term used to refer to a tenant; it is a unique identifier for a tenant and, for PostgreSQL, is equivalent to the schema name.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPattern = errors.New(
		"tenant name must start with an underscore or a letter, followed by at least two " +
			"characters that can be underscores, letters, or numbers",
	)
	ErrReservedPrefix = errors.New(
		"tenant name must not start with 'pg_' as it is reserved for system schemas in PostgreSQL",
	)
)

Tenant name validation errors.

Functions

func Validate

func Validate(tenantID string) error

Validate validates the tenant name.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL