Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metadata ¶
type Metadata map[TemplateName]Schema
Metadata represents the metadata of the generated code. FIXME: concurrent map is not safe
type MetadataArgs ¶ added in v2.8.0
func DecodeToMetadataArgs ¶ added in v2.8.0
func DecodeToMetadataArgs(data []byte) (*MetadataArgs, error)
type PluginGenerator ¶
type PluginGenerator struct {
// contains filtered or unexported fields
}
func NewPluginGenerator ¶
func NewPluginGenerator(bin string, opts ...PluginGeneratorOption) *PluginGenerator
func (*PluginGenerator) DriverName ¶
func (g *PluginGenerator) DriverName() string
func (*PluginGenerator) Generate ¶
func (g *PluginGenerator) Generate(t TMetadata) error
type PluginGeneratorOption ¶ added in v2.8.0
type PluginGeneratorOption func(*PluginGenerator)
func WithGeneratorArgs ¶ added in v2.8.0
func WithGeneratorArgs(args map[string]string) PluginGeneratorOption
type TMetadata ¶
type TMetadata struct { Namespace string Pkg string Meta Metadata Input string Output string DisableRawSQL bool }
func (TMetadata) IsDisableRawSQL ¶
type TemplateName ¶
type TemplateName string
Click to show internal directories.
Click to hide internal directories.