Documentation
¶
Index ¶
Constants ¶
View Source
const SelectSlug = "select"
Variables ¶
View Source
var DbCmd = &cobra.Command{
Use: "db",
Short: "Manage databases",
}
Functions ¶
func NewCodegenCommand ¶ added in v0.1.79
func NewSelectSection ¶ added in v0.4.0
func NewSelectSection() (*schema.SectionImpl, 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, parsedValues *values.Values, gp middlewares.Processor, ) error
type QuerySettings ¶ added in v0.2.0
type QuerySettings struct {
Query string `glazed:"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, parsedValues *values.Values, gp middlewares.Processor) error
type RunSettings ¶ added in v0.2.0
type RunSettings struct {
InputFiles []string `glazed:"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, parsedValues *values.Values, gp middlewares.Processor, ) error
type SelectCommandSettings ¶ added in v0.1.8
type SelectCommandSettings struct {
Columns []string `glazed:"columns"`
Limit int `glazed:"limit"`
Offset int `glazed:"offset"`
Count bool `glazed:"count"`
Where []string `glazed:"where"`
OrderBy string `glazed:"order-by"`
Distinct bool `glazed:"distinct"`
Table string `glazed:"table"`
CreateQuery string `glazed:"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)
Click to show internal directories.
Click to hide internal directories.