action

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 13 Imported by: 0

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

type InstallStorageTmplVars

type InstallStorageTmplVars struct {
	Config         StorageConfig
	Module         module.Manifesto
	StoragePackage string
}

type StorageConfig

type StorageConfig struct {
	Schema             string
	GenerateGraphql    bool
	GenerateFixture    bool
	GenerateDataloader bool
	ProjPath           string
}

type UpdateSqlcConfig

type UpdateSqlcConfig struct {
}

func NewUpdateSqlcConfig

func NewUpdateSqlcConfig() *UpdateSqlcConfig

func (*UpdateSqlcConfig) Update

func (c *UpdateSqlcConfig) Update(ctx context.Context, storagePath string, projPath string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL