Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCannotParseSqlcDefinition = errbuilder.New("cannot parse sqlc.definition.yaml file").
WithHint("Please check the file sqlc.definition.yaml content. It has wrong yaml format.").
Build()
View Source
var ErrCannotParseSqlcTmpl = errbuilder.New("cannot parse sqlc.tmpl.yaml file").
WithHint("Please check the file module/storage/sqlc.tmpl.yaml content. It has wrong yaml format.").
Build()
View Source
var ErrCannotUpdateSqlcConfig = errbuilder.New("cannot update sqlc config").
WithHint("Some issues occurred when the sql.yaml file is being combined.").
Build()
View Source
var ErrNoSqlcTmpl = errbuilder.New("sqlc.tmpl.yaml file does not exist").
WithHint("Please check the if the file module/storage/sqlc.tmpl.yaml exists.").
Build()
View Source
var ErrSqlcDefinitionFileNotFound = errors.New("project_root/sqlc.definition.yaml file not found")
View Source
var ErrSqlcTemplateFileNotFound = errors.New("module_path/storage/sqlc.tmpl.yaml file not found")
Functions ¶
This section is empty.
Types ¶
type InstallStorage ¶
type InstallStorage struct {
UpdateSqlcConfig *UpdateSqlcConfig
}
func NewInstallStorage ¶
func NewInstallStorage(config *UpdateSqlcConfig) *InstallStorage
func (*InstallStorage) Install ¶
func (c *InstallStorage) Install(ctx context.Context, md module.Manifesto, cfg StorageConfig) error
type InstallStorageTmplVars ¶
type InstallStorageTmplVars struct {
Config StorageConfig
Module module.Manifesto
StoragePackage string
}
type StorageConfig ¶
type UpdateSqlcConfig ¶
type UpdateSqlcConfig struct {
}
func NewUpdateSqlcConfig ¶
func NewUpdateSqlcConfig() *UpdateSqlcConfig
Click to show internal directories.
Click to hide internal directories.