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 CreateSqletonRepository ¶ added in v0.1.58
func CreateSqletonRepository(dirs []string) (*repositories.Repository, error)
CreateSqletonRepository uses the configured repositories to load a single repository watcher, and load all the necessary commands and aliases at startup.
NOTE(manuel, 2023-05-26) This could probably be extracted out of the CommandHandler and maybe submitted as a utility, as this currently ties the YAML load and the whole sqleton thing directly into the CommandDirHandler.
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
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
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
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
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
Click to show internal directories.
Click to hide internal directories.