Documentation
¶
Index ¶
Constants ¶
View Source
const PluginVersion = "0.0.2"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Package string `json:"package"`
// TODO - implement support for this
QueryParameterLimit int `json:"query_parameter_limit"`
IndentChar string `json:"indent_char"`
CharsPerIndentLevel int `json:"chars_per_indent_level"`
NullableAnnotation string `json:"nullable_annotation"`
NonNullAnnotation string `json:"non_null_annotation"`
}
type EmbeddedModels ¶ added in v0.0.2
type EmbeddedModels map[string][]QueryReturn
type Query ¶
type Query struct {
RawCommand string
Command QueryCommand
Text string
RawQueryName string
MethodName string
Args []QueryArg
Returns []QueryReturn
}
type QueryCommand ¶
type QueryCommand int
const ( One QueryCommand = iota Many Exec ExecRows ExecResult CopyFrom )
func QueryCommandFor ¶
func QueryCommandFor(rawCommand string) (QueryCommand, error)
type QueryReturn ¶
func (QueryReturn) ResultStmt ¶
func (q QueryReturn) ResultStmt(number int) string
Click to show internal directories.
Click to hide internal directories.