db

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: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotLoadManifest = errsys.New("cannot load manifesto", "Cannot load a project manifesto file")
View Source
var ErrMigrationApplyingError = errsys.New("error applying migration", "Migration cannot be applied.")
View Source
var ErrRollbackApplyingError = errsys.New("error applying rollback", "Migration cannot be rolled back.")

Functions

func NewAddCommand

func NewAddCommand(dbAdd *Add) *cli.Command

func NewDbCommand

func NewDbCommand(
	updateSqlc *UpdateSQLCConfig,
	add *Add,
	migrate *Migrate,
	rollback *Rollback,
	generate *Generate,
) *cli.Command

func NewGenerateCommand

func NewGenerateCommand(updateSqlc *Generate) *cli.Command

func NewMigrateCommand

func NewMigrateCommand(updateSqlc *Migrate) *cli.Command

func NewRollbackCommand

func NewRollbackCommand(updateSqlc *Rollback) *cli.Command

func NewUpdateSQLCConfigCommand

func NewUpdateSQLCConfigCommand(updateSqlc *UpdateSQLCConfig) *cli.Command

Types

type Add

type Add struct {
	// contains filtered or unexported fields
}

func NewAdd

func NewAdd(
	action *action.UpdateSqlcConfig,
) *Add

func (*Add) Invoke

func (c *Add) Invoke(
	ctx context.Context,
	cmd *cli.Command,
) error

type Generate

type Generate struct {
	// contains filtered or unexported fields
}

func NewGenerate

func NewGenerate(action *action.UpdateSqlcConfig) *Generate

func (*Generate) Invoke

func (c *Generate) Invoke(
	ctx context.Context,
	cmd *cli.Command,
) error

type Migrate

type Migrate struct {
	// contains filtered or unexported fields
}

func NewMigrate

func NewMigrate(
	action *action.UpdateSqlcConfig,
) *Migrate

func (*Migrate) Invoke

func (c *Migrate) Invoke(
	ctx context.Context,
	cmd *cli.Command,
) error

type Rollback

type Rollback struct {
	// contains filtered or unexported fields
}

func NewRollback

func NewRollback(
	action *action.UpdateSqlcConfig,
) *Rollback

func (*Rollback) Invoke

func (c *Rollback) Invoke(
	ctx context.Context,
	cmd *cli.Command,
) error

type UpdateSQLCConfig

type UpdateSQLCConfig struct {
	// contains filtered or unexported fields
}

func NewUpdateSQLCConfig

func NewUpdateSQLCConfig(action *action.UpdateSqlcConfig) *UpdateSQLCConfig

func (*UpdateSQLCConfig) Invoke

func (c *UpdateSQLCConfig) Invoke(
	ctx context.Context,
	cmd *cli.Command,
) error

Jump to

Keyboard shortcuts

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