Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzedQuery ¶
type AnalyzedQuery struct {
Query Query
ResultStructName string
ShouldEmitResult bool
Fields []ResultField
EmbeddedTables []EmbeddedTable
NullableTables map[string]bool
NullableAliases map[string]bool
GeneratedJSONSeen map[string]bool
}
AnalyzedQuery contains the type information required for code generation.
type EmbeddedTable ¶
EmbeddedTable describes an application row type embedded in a result.
type GeneratedJSONField ¶
type GeneratedJSONField struct {
JSONName string
FieldName string
GoType string
Nullable bool
FromTable string
FromColumn string
TableAlias string
}
GeneratedJSONField describes a field nested in generated JSON result types.
type Query ¶
type Query struct {
Name string
Description string
Deprecated string
Warnings []string
RawSQL string
SQL string
Params []Param
HashtagSequence []string
SourceSQL string
}
Query is a parsed named query.
type ResultField ¶
type ResultField struct {
Name string
DBName string
GoType string
Nullable bool
Serialization string
ExplicitType string
IsExpression bool
Skip bool
FromTable string
FromColumn string
TableAlias string
GeneratedStructName string
GeneratedStructKind string
GeneratedFields []GeneratedJSONField
}
ResultField describes one analyzed result column.
Click to show internal directories.
Click to hide internal directories.