Versions in this module Expand all Collapse all v1 v1.0.0 May 8, 2023 Changes in this version + func BuildContext(ctx context.Context, args *Args) context.Context + func DumpCommand(ctx context.Context, ts *templates.Set, args *Args) (*cobra.Command, error) + func Exec(ctx context.Context, mode string, ts *templates.Set, args *Args) func(*cobra.Command, []string) error + func Generate(ctx context.Context, mode string, ts *templates.Set, set *xo.Set, args *Args) error + func Introspect(ctx context.Context, query []string, allowNulls, flat bool) ([]xo.Field, error) + func LoadColumns(ctx context.Context, args *Args, table *xo.Table, enums []xo.Enum) error + func LoadConstraints(ctx context.Context, args *Args) ([]xo.Constraint, error) + func LoadEnumValues(ctx context.Context, args *Args, enum *xo.Enum) error + func LoadEnums(ctx context.Context, args *Args) ([]xo.Enum, error) + func LoadIndexColumns(ctx context.Context, args *Args, table *xo.Table, index *xo.Index) error + func LoadProcParams(ctx context.Context, args *Args, proc *xo.Proc) error + func LoadProcs(ctx context.Context, args *Args) ([]xo.Proc, error) + func LoadQuery(ctx context.Context, set *xo.Set, args *Args) error + func LoadQueryFields(ctx context.Context, query []string, fields string, allowNulls, flat bool) ([]xo.Field, error) + func LoadSchema(ctx context.Context, set *xo.Set, args *Args) error + func LoadTableForeignKeys(ctx context.Context, args *Args, tables []xo.Table, table xo.Table) ([]xo.ForeignKey, error) + func LoadTableIndexes(ctx context.Context, args *Args, table *xo.Table) error + func LoadTables(ctx context.Context, args *Args, typ string, enums []xo.Enum) ([]xo.Table, error) + func NewTemplateSet(ctx context.Context, dir, template string) (*templates.Set, error) + func ParseQuery(ctx context.Context, sqlstr, delimiter string, interpolate, trim, strip bool) ([]string, []string, []string, []xo.Field, error) + func ParseQueryFields(query, delim string, interpolate, paramInterpolate bool, nth func(int) string) (string, []xo.Field, error) + func QueryCommand(ctx context.Context, ts *templates.Set, args *Args) (*cobra.Command, error) + func RootCommand(ctx context.Context, name, version string, ts *templates.Set, args *Args, ...) (*cobra.Command, error) + func Run(ctx context.Context, name, version string, cmdArgs ...string) error + func SchemaCommand(ctx context.Context, ts *templates.Set, args *Args) (*cobra.Command, error) + func SplitFields(s string) ([]xo.Field, error) + type Args struct + LoaderParams LoaderParams + OutParams OutParams + QueryParams QueryParams + SchemaParams SchemaParams + TemplateParams TemplateParams + Verbose bool + func NewArgs(name string, names ...string) *Args + type LoaderParams struct + Flags map[xo.ContextKey]*xo.Value + Schema string + type OutParams struct + Debug bool + Out string + Single string + type QueryParams struct + AllowNulls bool + Delimiter string + Exec bool + Fields string + Flat bool + Func string + FuncComment string + Interpolate bool + One bool + Query string + Strip bool + Trim bool + Type string + TypeComment string + type SchemaParams struct + Exclude *xo.Value + FkMode *xo.Value + Ignore *xo.Value + Include *xo.Value + MainSchemaPkg *xo.Value + UseIndexNames bool + type TemplateParams struct + Flags map[xo.ContextKey]*xo.Value + Src string + Type *xo.Value Other modules containing this package github.com/danicc097/xo/v3 github.com/danicc097/xo/v5