helpers

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 18 Imported by: 13

Documentation

Index

Constants

View Source
const DefaultConfigPath = "./bobgen.yaml"

Variables

This section is empty.

Functions

func DefaultOutputs added in v0.17.1

func DefaultOutputs(destination, pkgname string, noFactory bool, templates *Templates) []*gen.Output

func EnumType added in v0.26.0

func EnumType(types drivers.Types, enum string) string

func GetConfigFromFile added in v0.17.2

func GetConfigFromFile[ConstraintExtra, DriverConfig any](configPath, driverConfigKey string) (gen.Config[ConstraintExtra], DriverConfig, error)

func GetConfigFromProvider added in v0.17.2

func GetConfigFromProvider[ConstraintExtra, DriverConfig any](provider koanf.Provider, driverConfigKey string) (gen.Config[ConstraintExtra], DriverConfig, error)

func GetFreePort added in v0.26.0

func GetFreePort() (int, error)

func Migrate added in v0.26.0

func Migrate(ctx context.Context, db *sql.DB, dir fs.FS) error

func Types added in v0.24.0

func Types() drivers.Types

func Version

func Version() string

Types

type Templates added in v0.17.1

type Templates struct {
	Models  []fs.FS
	Factory []fs.FS
	Queries []fs.FS
}

Jump to

Keyboard shortcuts

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