package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
GetDatabaseRegions returns the active regions from the database's region enum.
NewCachedDatabaseRegions creates a new region cache by leasing the underlying descriptors for the system database and region enum.
NewCachedDatabaseRegionsAt creates a new region cache by leasing the underlying descriptors for the system database and region enum, with descriptors fetched at a specific timestamp.
NewProvider constructs a new Provider.
# Variables
ErrNotMultiRegionDatabase is returned from SynthesizeRegionConfig when the requested database is not a multi-region database.
# Structs
CachedDatabaseRegions tracks the regions that are part of a multi-region database.
Provider implements sql.RegionsProvider.
# Interfaces
Connector is used to fetch the set of regions from the host cluster.
# Type aliases
RegionSet is a map where each key is a region name.