importdb

package
v1.28.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package importdb contains the functions to import a database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportDatabaseMicroservice

func ImportDatabaseMicroservice(
	ctx context.Context,
	crudClient client.Client,
	namespace,
	sourceClusterName,
	importedClusterName,
	imageName,
	databaseName string,
) (*apiv1.Cluster, error)

ImportDatabaseMicroservice creates a cluster, starting from an external cluster using microservice approach NOTE: the application user on the source Cluster needs to be granted with REPLICATION permissions, which are not set by default

func ImportDatabasesMonolith

func ImportDatabasesMonolith(
	ctx context.Context,
	crudClient client.Client,
	namespace,
	sourceClusterName,
	importedClusterName,
	imageName string,
	databaseNames []string,
	roles []string,
) (*apiv1.Cluster, error)

ImportDatabasesMonolith creates a new cluster spec importing from a sourceCluster using the Monolith approach. Imports all the specified `databaseNames` and `roles` from the source cluster NOTE: enableSuperuserAccess needs to be enabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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