helpers

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AddPgEnumArrayType added in v0.24.0

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

func AddPgEnumType added in v0.24.0

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

func AddPgGenericArrayType added in v0.24.0

func AddPgGenericArrayType(types drivers.Types, singleTyp string) string

func DefaultOutputs added in v0.17.1

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

func GetConfigFromFile added in v0.17.2

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

func GetConfigFromProvider added in v0.17.2

func GetConfigFromProvider[DriverConfig any](provider koanf.Provider, driverConfigKey string) (gen.Config, DriverConfig, 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
}

Jump to

Keyboard shortcuts

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