cmds

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 42 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 NewCodegenCommand added in v0.1.79

func NewCodegenCommand() *cobra.Command

func NewSelectParameterLayer added in v0.1.5

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

Types

type QueryCommand added in v0.1.5

type QueryCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

func NewQueryCommand added in v0.1.5

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

func (*QueryCommand) RunIntoGlazeProcessor added in v0.2.0

func (q *QueryCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type QuerySettings added in v0.2.0

type QuerySettings struct {
	Query string `glazed.parameter:"query"`
}

type RunCommand added in v0.1.5

type RunCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

func NewRunCommand added in v0.1.5

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

func (*RunCommand) RunIntoGlazeProcessor added in v0.2.0

func (c *RunCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor) error

type RunSettings added in v0.2.0

type RunSettings struct {
	InputFiles []string `glazed.parameter:"input-files"`
}

type SelectCommand added in v0.1.5

type SelectCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

func NewSelectCommand added in v0.1.5

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

func (*SelectCommand) RunIntoGlazeProcessor added in v0.2.0

func (sc *SelectCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.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"`
	CreateQuery string   `glazed.parameter:"create-query"`
}

type ServeCommand added in v0.1.35

type ServeCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

func NewServeCommand added in v0.1.35

func NewServeCommand(
	dbConnectionFactory sql.DBConnectionFactory,
	repositoryPaths []string,
	options ...cmds.CommandDescriptionOption,
) (*ServeCommand, error)

func (*ServeCommand) Run added in v0.1.36

func (s *ServeCommand) Run(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
) error

type ServeSettings added in v0.2.0

type ServeSettings struct {
	Dev         bool     `glazed.parameter:"dev"`
	Debug       bool     `glazed.parameter:"debug"`
	ServePort   int      `glazed.parameter:"serve-port"`
	ServeHost   string   `glazed.parameter:"serve-host"`
	ContentDirs []string `glazed.parameter:"content-dirs"`
	ConfigFile  string   `glazed.parameter:"config-file"`
}

Jump to

Keyboard shortcuts

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