Documentation ¶
Index ¶
- type Message
- type Method
- type Server
- type SqlPlugin
- func (g *SqlPlugin) Error(errorMsg string)
- func (p *SqlPlugin) Generate(file *generator.FileDescriptor)
- func (p *SqlPlugin) GenerateImports(file *generator.FileDescriptor)
- func (p *SqlPlugin) GenerateSQLTemplates() error
- func (p *SqlPlugin) GetSQLTemplates() error
- func (p *SqlPlugin) Init(g *generator.Generator)
- func (p *SqlPlugin) Name() string
- func (p *SqlPlugin) PrintSQLTemplates(file *generator.FileDescriptor) error
- func (p *SqlPlugin) TestSQLTemplates(g *generator.Generator)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method struct { MethodName string ServiceName string MapperName string RequestName string ResponseName string SqlTemplateName string QueryType string }
RPC Method, corresponding to a single sql statement
type SqlPlugin ¶
type SqlPlugin struct { *generator.Generator SqlTemplates string SqlTemplateName string Pkg map[alias]bool EnumValueMaps map[string]map[string]int32 // contains filtered or unexported fields }
func (*SqlPlugin) Generate ¶
func (p *SqlPlugin) Generate(file *generator.FileDescriptor)
Generates mapper file
func (*SqlPlugin) GenerateImports ¶
func (p *SqlPlugin) GenerateImports(file *generator.FileDescriptor)
func (*SqlPlugin) GenerateSQLTemplates ¶
func (*SqlPlugin) GetSQLTemplates ¶
func (*SqlPlugin) PrintSQLTemplates ¶
func (p *SqlPlugin) PrintSQLTemplates(file *generator.FileDescriptor) error
Generate sql template only in the first protofile
func (*SqlPlugin) TestSQLTemplates ¶
Click to show internal directories.
Click to hide internal directories.