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
Click to show internal directories.
Click to hide internal directories.