cmds

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbCmd = &cobra.Command{
	Use:   "db",
	Short: "Manage databases",
}
View Source
var MysqlCmd = &cobra.Command{
	Use:   "mysql",
	Short: "MySQL commands",
}

Functions

func NewSelectParameterLayer added in v0.1.5

func NewSelectParameterLayer() (*layers.ParameterLayerImpl, error)

Types

type QueriesCommand added in v0.1.5

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

func NewQueriesCommand added in v0.1.5

func NewQueriesCommand(
	allQueries []*sqleton.SqlCommand,
	aliases []*alias.CommandAlias,
	options ...glazed_cmds.CommandDescriptionOption,
) (*QueriesCommand, error)

func (*QueriesCommand) Description added in v0.1.5

func (q *QueriesCommand) Description() *glazed_cmds.CommandDescription

func (*QueriesCommand) Run added in v0.1.5

func (q *QueriesCommand) Run(
	ctx context.Context,
	parsedLayers map[string]*layers.ParsedParameterLayer,
	ps map[string]interface{},
	gp glazed_cmds.Processor,
) error

type QueryCommand added in v0.1.5

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

func NewQueryCommand added in v0.1.5

func NewQueryCommand(
	dbConnectionFactory pkg.DBConnectionFactory,
	options ...cmds.CommandDescriptionOption,
) (*QueryCommand, error)

func (*QueryCommand) Description added in v0.1.5

func (q *QueryCommand) Description() *cmds.CommandDescription

func (*QueryCommand) Run added in v0.1.5

func (q *QueryCommand) Run(
	ctx context.Context,
	parsedLayers map[string]*layers.ParsedParameterLayer,
	ps map[string]interface{},
	gp cmds.Processor,
) error

type RunCommand added in v0.1.5

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

func NewRunCommand added in v0.1.5

func NewRunCommand(
	dbConnectionFactory pkg.DBConnectionFactory,
	options ...cmds.CommandDescriptionOption,
) (*RunCommand, error)

func (*RunCommand) Description added in v0.1.5

func (c *RunCommand) Description() *cmds.CommandDescription

func (*RunCommand) Run added in v0.1.5

func (c *RunCommand) Run(
	ctx context.Context,
	parsedLayers map[string]*layers.ParsedParameterLayer,
	ps map[string]interface{},
	gp cmds.Processor) error

type SelectCommand added in v0.1.5

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

func NewSelectCommand added in v0.1.5

func NewSelectCommand(
	dbConnectionFactory pkg.DBConnectionFactory,
	options ...cmds.CommandDescriptionOption,
) (*SelectCommand, error)

func (*SelectCommand) Description added in v0.1.5

func (sc *SelectCommand) Description() *cmds.CommandDescription

func (*SelectCommand) Run added in v0.1.5

func (sc *SelectCommand) Run(
	ctx context.Context,
	parsedLayers map[string]*layers.ParsedParameterLayer,
	ps map[string]interface{},
	gp cmds.Processor,
) error

type SelectCommandSettings added in v0.1.8

type SelectCommandSettings struct {
	Columns  []string `glazed.parameter:"columns"`
	Limit    int      `glazed.parameter:"limit"`
	Offset   int      `glazed.parameter:"offset"`
	Count    bool     `glazed.parameter:"count"`
	Where    string   `glazed.parameter:"where"`
	OrderBy  string   `glazed.parameter:"order-by"`
	Distinct bool     `glazed.parameter:"distinct"`
	Table    string   `glazed.parameter:"table"`
}

type ServeCommand added in v0.1.35

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

func NewServeCommand added in v0.1.35

func NewServeCommand(
	dbConnectionFactory pkg.DBConnectionFactory,
	repositories []string, commands []cmds.Command, aliases []*alias.CommandAlias,
	options ...cmds.CommandDescriptionOption,
) *ServeCommand

func (*ServeCommand) Description added in v0.1.36

func (s *ServeCommand) Description() *cmds.CommandDescription

func (*ServeCommand) Run added in v0.1.36

func (s *ServeCommand) Run(
	ctx context.Context,
	parsedLayers map[string]*layers.ParsedParameterLayer,
	ps map[string]interface{},
) error

Jump to

Keyboard shortcuts

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