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 NewSelectParameterLayer ¶ added in v0.1.5
func NewSelectParameterLayer() (*layers.ParameterLayerImpl, error)
Types ¶
type QueriesCommand ¶ added in v0.1.5
type QueriesCommand struct {
*glazed_cmds.CommandDescription
// 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) Run ¶ added in v0.1.5
func (q *QueriesCommand) Run( ctx context.Context, parsedLayers map[string]*layers.ParsedParameterLayer, ps map[string]interface{}, gp middlewares.Processor, ) error
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 cmds2.DBConnectionFactory, options ...cmds.CommandDescriptionOption, ) (*QueryCommand, error)
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 middlewares.Processor, ) error
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 cmds2.DBConnectionFactory, options ...cmds.CommandDescriptionOption, ) (*RunCommand, error)
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 middlewares.Processor) error
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 cmds2.DBConnectionFactory, options ...cmds.CommandDescriptionOption, ) (*SelectCommand, error)
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 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"`
}
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 cmds2.DBConnectionFactory, repositories []string, commands []cmds.Command, aliases []*alias.CommandAlias, options ...cmds.CommandDescriptionOption, ) *ServeCommand
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
Click to show internal directories.
Click to hide internal directories.