infrastructure

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package infrastructure contains the structs and interfaces needed to manage declarative tablespace

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tablespace

type Tablespace struct {
	// Name is the name of the tablespace
	Name string `json:"name"`

	// Owner is the owner of this tablespace
	Owner string `json:"owner"`
}

Tablespace represents the tablespace information read from / written to the Database

type TablespaceManager

type TablespaceManager interface {
	// List the tablespace in the database
	List(ctx context.Context) ([]Tablespace, error)

	// Create the tablespace in the database
	Create(ctx context.Context, tablespace Tablespace) error

	// Update the tablespace in the database (change ownership)
	Update(ctx context.Context, tablespace Tablespace) error
}

TablespaceManager abstracts the functionality of reconciling with PostgreSQL tablespaces

func NewPostgresTablespaceManager

func NewPostgresTablespaceManager(superDB *sql.DB) TablespaceManager

NewPostgresTablespaceManager returns an implementation of TablespaceManager for postgres

Jump to

Keyboard shortcuts

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