infrastructure

package
v1.25.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 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

func Create added in v1.23.6

func Create(ctx context.Context, db *sql.DB, tbs Tablespace) error

Create the tablespace in the database, if tablespace is temporary tablespace, need reload configure

func Update added in v1.23.6

func Update(ctx context.Context, db *sql.DB, tbs Tablespace) error

Update the tablespace in the database (change ownership)

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

func List added in v1.23.6

func List(ctx context.Context, db *sql.DB) ([]Tablespace, error)

List the tablespaces in the database The content exclude pg_default and pg_global database

Jump to

Keyboard shortcuts

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