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 []*glazed_cmds.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
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"`
}
Click to show internal directories.
Click to hide internal directories.