Documentation
¶
Index ¶
- type ConnectionCommands
- type ConnectionDeleteCommand
- type ConnectionGetCommand
- type ConnectionListCommand
- type DatabaseCommands
- type DatabaseCreateCommand
- type DatabaseDeleteCommand
- type DatabaseGetCommand
- type DatabaseListCommand
- type DatabaseUpdateCommand
- type ObjectCommands
- type ObjectGetCommand
- type ObjectListCommand
- type RoleCommands
- type RoleCreateCommand
- type RoleDeleteCommand
- type RoleGetCommand
- type RoleListCommand
- type RoleUpdateCommand
- type SchemaCommands
- type SchemaCreateCommand
- type SchemaDeleteCommand
- type SchemaGetCommand
- type SchemaListCommand
- type SchemaUpdateCommand
- type TablespaceCommands
- type TablespaceCreateCommand
- type TablespaceDeleteCommand
- type TablespaceGetCommand
- type TablespaceListCommand
- type TablespaceUpdateCommand
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
}
type ConnectionGetCommand ¶
type ConnectionGetCommand struct {
Pid uint64 `arg:"" name:"pid" help:"Connection PID"`
}
type ConnectionListCommand ¶
type ConnectionListCommand struct {
schema.ConnectionListRequest
}
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
}
type DatabaseDeleteCommand ¶
type DatabaseDeleteCommand struct {
DatabaseGetCommand
Force bool `help:"Force delete"`
}
type DatabaseGetCommand ¶
type DatabaseGetCommand struct {
Name string `arg:"" name:"name" help:"Database name"`
}
type DatabaseListCommand ¶
type DatabaseListCommand struct {
schema.DatabaseListRequest
}
type DatabaseUpdateCommand ¶
type DatabaseUpdateCommand struct {
Name string `help:"New database name"`
DatabaseCreateCommand
}
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
}
type ObjectListCommand ¶
type ObjectListCommand struct {
schema.ObjectListRequest
}
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 RoleDeleteCommand ¶
type RoleDeleteCommand struct {
RoleGetCommand
}
type RoleGetCommand ¶
type RoleGetCommand struct {
Name string `arg:"" name:"name" help:"Role name"`
}
type RoleListCommand ¶
type RoleListCommand struct {
schema.RoleListRequest
}
type RoleUpdateCommand ¶
type RoleUpdateCommand struct {
Name string `help:"New role name"`
RoleCreateCommand
}
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
}
type SchemaDeleteCommand ¶
type SchemaDeleteCommand struct {
SchemaGetCommand
Force bool `help:"Force delete"`
}
type SchemaGetCommand ¶
type SchemaGetCommand struct {
Name string `arg:"" name:"name" help:"Schema name ('database/schema')"`
}
type SchemaListCommand ¶
type SchemaListCommand struct {
schema.SchemaListRequest
}
type SchemaUpdateCommand ¶
type SchemaUpdateCommand struct {
Name string `help:"New schema name"`
SchemaCreateCommand
}
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
}
type TablespaceDeleteCommand ¶
type TablespaceDeleteCommand struct {
TablespaceGetCommand
}
type TablespaceGetCommand ¶
type TablespaceGetCommand struct {
Name string `arg:"" help:"Tablespace name"`
}
type TablespaceListCommand ¶
type TablespaceListCommand struct {
schema.TablespaceListRequest
}
type TablespaceUpdateCommand ¶
type TablespaceUpdateCommand struct {
Name string `arg:"" help:"Tablespace name"`
schema.TablespaceMeta
}
Click to show internal directories.
Click to hide internal directories.