Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCannotGenerateFiles = errors.NewWithHint(
"sqlc run error",
"Please check the sqlc.yaml file. SQLc cannot generate the files.",
)
View Source
var ErrCannotInstallSqlc = errors.NewWithHint(
"cannot install sqlc",
"Cannot install SQLc. Please check your internet connection and try again.",
)
View Source
var ErrCannotParseSqlcDefinition = errors.New("cannot parse sqlc.definition.yaml file")
View Source
var ErrCannotParseSqlcTmpl = errors.New("cannot parse sqlc.tmpl.yaml file")
View Source
var ErrCannotUpdateSqlcConfig = errors.New("cannot update sqlc config")
View Source
var ErrNoSqlcTmpl = errors.New("sqlc.tmpl.yaml file does not exist")
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.