Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedProvider = errors.New("unsupported provider")
ErrUnsupportedProvider is returned when the provider is not supported.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider string
Provider represents the database provider.
Available providers.
func ParseFromString ¶
ParseFromString parses the Provider from the protobuf options.
type TemplateBuilder ¶
type TemplateBuilder interface { // GetInitStatement returns the initialization statement. GetInitStatement(*statepkg.State) (statepkg.Templater, error) // GetEntities returns the entities. GetEntities(*statepkg.State) ([]statepkg.Templater, error) // GetFinalizeStatement returns the finalization statement. GetFinalizeStatement(*statepkg.State) (statepkg.Templater, error) }
TemplateBuilder is a type for providing content. It is used to build the template.
func GetTemplateBuilder ¶
func GetTemplateBuilder(request *plugingo.CodeGeneratorRequest) (TemplateBuilder, error)
GetTemplateBuilder returns the TemplateBuilder for the given provider.
Click to show internal directories.
Click to hide internal directories.