pgmanager

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, conn pg.PoolConn) (*Manager, error)

Create a new database manager

func (*Manager) CreateDatabase

func (manager *Manager) CreateDatabase(ctx context.Context, meta schema.DatabaseMeta) (*schema.Database, error)

func (*Manager) CreateRole

func (manager *Manager) CreateRole(ctx context.Context, meta schema.RoleMeta) (*schema.Role, error)

func (*Manager) CreateSchema

func (manager *Manager) CreateSchema(ctx context.Context, database string, meta schema.SchemaMeta) (*schema.Schema, error)

func (*Manager) CreateTablespace

func (manager *Manager) CreateTablespace(ctx context.Context, meta schema.TablespaceMeta, location string) (*schema.Tablespace, error)

func (*Manager) DeleteConnection

func (manager *Manager) DeleteConnection(ctx context.Context, pid uint64) (*schema.Connection, error)

func (*Manager) DeleteDatabase

func (manager *Manager) DeleteDatabase(ctx context.Context, name string, force bool) (*schema.Database, error)

func (*Manager) DeleteRole

func (manager *Manager) DeleteRole(ctx context.Context, name string) (*schema.Role, error)

func (*Manager) DeleteSchema

func (manager *Manager) DeleteSchema(ctx context.Context, database, namespace string, force bool) (*schema.Schema, error)

func (*Manager) DeleteTablespace

func (manager *Manager) DeleteTablespace(ctx context.Context, name string) (*schema.Tablespace, error)

func (*Manager) GetConnection

func (manager *Manager) GetConnection(ctx context.Context, pid uint64) (*schema.Connection, error)

func (*Manager) GetDatabase

func (manager *Manager) GetDatabase(ctx context.Context, name string) (*schema.Database, error)

func (*Manager) GetObject

func (manager *Manager) GetObject(ctx context.Context, database, namespace, name string) (*schema.Object, error)

func (*Manager) GetRole

func (manager *Manager) GetRole(ctx context.Context, name string) (*schema.Role, error)

func (*Manager) GetSchema

func (manager *Manager) GetSchema(ctx context.Context, database, namespace string) (*schema.Schema, error)

func (*Manager) GetTablespace

func (manager *Manager) GetTablespace(ctx context.Context, name string) (*schema.Tablespace, error)

func (*Manager) ListConnections

func (manager *Manager) ListConnections(ctx context.Context, req schema.ConnectionListRequest) (*schema.ConnectionList, error)

func (*Manager) ListDatabases

func (manager *Manager) ListDatabases(ctx context.Context, req schema.DatabaseListRequest) (*schema.DatabaseList, error)

func (*Manager) ListObjects

func (manager *Manager) ListObjects(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)

func (*Manager) ListRoles

func (manager *Manager) ListRoles(ctx context.Context, req schema.RoleListRequest) (*schema.RoleList, error)

func (*Manager) ListSchemas

func (manager *Manager) ListSchemas(ctx context.Context, req schema.SchemaListRequest) (*schema.SchemaList, error)

func (*Manager) ListTablespaces

func (manager *Manager) ListTablespaces(ctx context.Context, req schema.TablespaceListRequest) (*schema.TablespaceList, error)

func (*Manager) UpdateDatabase

func (manager *Manager) UpdateDatabase(ctx context.Context, name string, meta schema.DatabaseMeta) (*schema.Database, error)

func (*Manager) UpdateRole

func (manager *Manager) UpdateRole(ctx context.Context, name string, meta schema.RoleMeta) (*schema.Role, error)

func (*Manager) UpdateSchema

func (manager *Manager) UpdateSchema(ctx context.Context, database, namespace string, meta schema.SchemaMeta) (*schema.Schema, error)

func (*Manager) UpdateTablespace

func (manager *Manager) UpdateTablespace(ctx context.Context, name string, meta schema.TablespaceMeta) (*schema.Tablespace, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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