action

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 15 Imported by: 0

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

type InstallStorageTmplVars

type InstallStorageTmplVars struct {
	Config         StorageConfig
	Module         module.ManifestModule
	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