cmd

package
v1.5.17 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 7 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 ConnectionCommands

type ConnectionCommands struct {
	Connections    ConnectionListCommand   `cmd:"" group:"DATABASE" help:"List connections"`
	Connection     ConnectionGetCommand    `cmd:"get" group:"DATABASE" help:"Get connection"`
	KillConnection ConnectionDeleteCommand `cmd:"delete" group:"DATABASE" help:"Kill connection"`
}

type ConnectionDeleteCommand

type ConnectionDeleteCommand struct {
	ConnectionGetCommand
}

func (ConnectionDeleteCommand) Run

func (cmd ConnectionDeleteCommand) Run(ctx server.Cmd) error

type ConnectionGetCommand

type ConnectionGetCommand struct {
	Pid uint64 `arg:"" name:"pid" help:"Connection PID"`
}

func (ConnectionGetCommand) Run

func (cmd ConnectionGetCommand) Run(ctx server.Cmd) error

type ConnectionListCommand

type ConnectionListCommand struct {
	schema.ConnectionListRequest
}

func (ConnectionListCommand) Run

func (cmd ConnectionListCommand) Run(ctx server.Cmd) error

type DatabaseCommands

type DatabaseCommands struct {
	Databases      DatabaseListCommand   `cmd:"" group:"DATABASE" help:"List databases"`
	Database       DatabaseGetCommand    `cmd:"get" group:"DATABASE" help:"Get database"`
	CreateDatabase DatabaseCreateCommand `cmd:"create" group:"DATABASE" help:"Create a new database"`
	UpdateDatabase DatabaseUpdateCommand `cmd:"update" group:"DATABASE" help:"Update a database"`
	DeleteDatabase DatabaseDeleteCommand `cmd:"delete" group:"DATABASE" help:"Delete a database"`
}

type DatabaseCreateCommand

type DatabaseCreateCommand struct {
	schema.DatabaseMeta
}

func (DatabaseCreateCommand) Run

func (cmd DatabaseCreateCommand) Run(ctx server.Cmd) error

type DatabaseDeleteCommand

type DatabaseDeleteCommand struct {
	DatabaseGetCommand
	Force bool `help:"Force delete"`
}

func (DatabaseDeleteCommand) Run

func (cmd DatabaseDeleteCommand) Run(ctx server.Cmd) error

type DatabaseGetCommand

type DatabaseGetCommand struct {
	Name string `arg:"" name:"name" help:"Database name"`
}

func (DatabaseGetCommand) Run

func (cmd DatabaseGetCommand) Run(ctx server.Cmd) error

type DatabaseListCommand

type DatabaseListCommand struct {
	schema.DatabaseListRequest
}

func (DatabaseListCommand) Run

func (cmd DatabaseListCommand) Run(ctx server.Cmd) error

type DatabaseUpdateCommand

type DatabaseUpdateCommand struct {
	Name string `help:"New database name"`
	DatabaseCreateCommand
}

func (DatabaseUpdateCommand) Run

func (cmd DatabaseUpdateCommand) Run(ctx server.Cmd) error

type ObjectCommands

type ObjectCommands struct {
	Objects ObjectListCommand `cmd:"" group:"DATABASE" help:"List objects"`
	Object  ObjectGetCommand  `cmd:"" group:"DATABASE" help:"Get object"`
}

type ObjectGetCommand

type ObjectGetCommand struct {
	Database string
	schema.ObjectName
}

func (ObjectGetCommand) Run

func (cmd ObjectGetCommand) Run(ctx server.Cmd) error

type ObjectListCommand

type ObjectListCommand struct {
	schema.ObjectListRequest
}

func (ObjectListCommand) Run

func (cmd ObjectListCommand) Run(ctx server.Cmd) error

type RoleCommands

type RoleCommands struct {
	Roles      RoleListCommand   `cmd:"" group:"DATABASE" help:"List database roles"`
	Role       RoleGetCommand    `cmd:"get" group:"DATABASE" help:"Get a database role"`
	CreateRole RoleCreateCommand `cmd:"create" group:"DATABASE" help:"Create a new database role"`
	UpdateRole RoleUpdateCommand `cmd:"update" group:"DATABASE" help:"Update a database role"`
	DeleteRole RoleDeleteCommand `cmd:"delete" group:"DATABASE" help:"Delete a database role"`
}

type RoleCreateCommand

type RoleCreateCommand struct {
	schema.RoleMeta
}

func (RoleCreateCommand) Run

func (cmd RoleCreateCommand) Run(ctx server.Cmd) error

type RoleDeleteCommand

type RoleDeleteCommand struct {
	RoleGetCommand
}

func (RoleDeleteCommand) Run

func (cmd RoleDeleteCommand) Run(ctx server.Cmd) error

type RoleGetCommand

type RoleGetCommand struct {
	Name string `arg:"" name:"name" help:"Role name"`
}

func (RoleGetCommand) Run

func (cmd RoleGetCommand) Run(ctx server.Cmd) error

type RoleListCommand

type RoleListCommand struct {
	schema.RoleListRequest
}

func (RoleListCommand) Run

func (cmd RoleListCommand) Run(ctx server.Cmd) error

type RoleUpdateCommand

type RoleUpdateCommand struct {
	Name string `help:"New role name"`
	RoleCreateCommand
}

func (RoleUpdateCommand) Run

func (cmd RoleUpdateCommand) Run(ctx server.Cmd) error

type SchemaCommands

type SchemaCommands struct {
	Schemas      SchemaListCommand   `cmd:"" group:"DATABASE" help:"List schemas"`
	Schema       SchemaGetCommand    `cmd:"" group:"DATABASE" help:"Get schema"`
	CreateSchema SchemaCreateCommand `cmd:"" group:"DATABASE" help:"Create a new schema"`
	UpdateSchema SchemaUpdateCommand `cmd:"" group:"DATABASE" help:"Update a schema"`
	DeleteSchema SchemaDeleteCommand `cmd:"" group:"DATABASE" help:"Delete a schema"`
}

type SchemaCreateCommand

type SchemaCreateCommand struct {
	schema.SchemaMeta
}

func (SchemaCreateCommand) Run

func (cmd SchemaCreateCommand) Run(ctx server.Cmd) error

type SchemaDeleteCommand

type SchemaDeleteCommand struct {
	SchemaGetCommand
	Force bool `help:"Force delete"`
}

func (SchemaDeleteCommand) Run

func (cmd SchemaDeleteCommand) Run(ctx server.Cmd) error

type SchemaGetCommand

type SchemaGetCommand struct {
	Name string `arg:"" name:"name" help:"Schema name ('database/schema')"`
}

func (SchemaGetCommand) Run

func (cmd SchemaGetCommand) Run(ctx server.Cmd) error

type SchemaListCommand

type SchemaListCommand struct {
	schema.SchemaListRequest
}

func (SchemaListCommand) Run

func (cmd SchemaListCommand) Run(ctx server.Cmd) error

type SchemaUpdateCommand

type SchemaUpdateCommand struct {
	Name string `help:"New schema name"`
	SchemaCreateCommand
}

func (SchemaUpdateCommand) Run

func (cmd SchemaUpdateCommand) Run(ctx server.Cmd) error

type TablespaceCommands

type TablespaceCommands struct {
	Tablespaces      TablespaceListCommand   `cmd:"" group:"DATABASE" help:"List tablespaces"`
	Tablespace       TablespaceGetCommand    `cmd:"" group:"DATABASE" help:"Get tablespace"`
	CreateTablespace TablespaceCreateCommand `cmd:"" group:"DATABASE" help:"Create a new tablespace"`
	UpdateTablespace TablespaceUpdateCommand `cmd:"" group:"DATABASE" help:"Update a tablespace"`
	DeleteTablespace TablespaceDeleteCommand `cmd:"" group:"DATABASE" help:"Delete a tablespace"`
}

type TablespaceCreateCommand

type TablespaceCreateCommand struct {
	Location string `arg:"" help:"Tablespace path"`
	schema.TablespaceMeta
}

func (TablespaceCreateCommand) Run

func (cmd TablespaceCreateCommand) Run(ctx server.Cmd) error

type TablespaceDeleteCommand

type TablespaceDeleteCommand struct {
	TablespaceGetCommand
}

func (TablespaceDeleteCommand) Run

func (cmd TablespaceDeleteCommand) Run(ctx server.Cmd) error

type TablespaceGetCommand

type TablespaceGetCommand struct {
	Name string `arg:"" help:"Tablespace name"`
}

func (TablespaceGetCommand) Run

func (cmd TablespaceGetCommand) Run(ctx server.Cmd) error

type TablespaceListCommand

type TablespaceListCommand struct {
	schema.TablespaceListRequest
}

func (TablespaceListCommand) Run

func (cmd TablespaceListCommand) Run(ctx server.Cmd) error

type TablespaceUpdateCommand

type TablespaceUpdateCommand struct {
	Name string `arg:"" help:"Tablespace name"`
	schema.TablespaceMeta
}

func (TablespaceUpdateCommand) Run

func (cmd TablespaceUpdateCommand) Run(ctx server.Cmd) error

Jump to

Keyboard shortcuts

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